|
@@ -125,7 +125,7 @@ public class ServicesFragment extends Fragment{
|
|
for(int i=0; i < protocols.length; i++){
|
|
for(int i=0; i < protocols.length; i++){
|
|
|
|
|
|
protocolList.get(i).attacks = String.valueOf(dbh.numBssidSeen(protocolList.get(i).protocol, mConnectionInfo.getString(getString(R.string.connection_info_bssid), null)));
|
|
protocolList.get(i).attacks = String.valueOf(dbh.numBssidSeen(protocolList.get(i).protocol, mConnectionInfo.getString(getString(R.string.connection_info_bssid), null)));
|
|
- protocolList.get(i).initialValue = Integer.valueOf(protocolList.get(i).attacks);
|
|
|
|
|
|
+ // protocolList.get(i).initialValue = Integer.valueOf(protocolList.get(i).attacks);
|
|
}
|
|
}
|
|
|
|
|
|
adapter = new ServicesListAdapter(getActivity().getBaseContext(), protocolList);
|
|
adapter = new ServicesListAdapter(getActivity().getBaseContext(), protocolList);
|
|
@@ -181,6 +181,23 @@ public class ServicesFragment extends Fragment{
|
|
|
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
+ @Override
|
|
|
|
+ public void onStart(){
|
|
|
|
+ super.onStart();
|
|
|
|
+ registerBroadcastReceiver();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public void onStop(){
|
|
|
|
+ super.onStop();
|
|
|
|
+ unregisterBroadcastReceiver();
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ private void unregisterBroadcastReceiver(){
|
|
|
|
+ LocalBroadcastManager.getInstance(getActivity()).unregisterReceiver(mReceiver);
|
|
|
|
+ }
|
|
|
|
+
|
|
private void setStateActive() {
|
|
private void setStateActive() {
|
|
mServicesSwitchService.setChecked(true);
|
|
mServicesSwitchService.setChecked(true);
|
|
}
|
|
}
|