Change time of intents filter reginstration.

A Bluetooth pairing dialog somehow sets the connection fragment on pause
so old registration would cause loosing messages from service.

Change-Id: Ie4f6bef96b89a0c2aa86ec00da478831b572e191
This commit is contained in:
Artur Dryomov 2013-09-01 18:32:50 +03:00
parent ff0ab3bd21
commit cfe24b09a5

View File

@ -133,8 +133,8 @@ public class ComputerConnectionFragment extends SherlockFragment implements Serv
} }
@Override @Override
public void onResume() { public void onStart() {
super.onResume(); super.onStart();
registerIntentsReceiver(); registerIntentsReceiver();
} }
@ -285,8 +285,8 @@ public class ComputerConnectionFragment extends SherlockFragment implements Serv
} }
@Override @Override
public void onPause() { public void onStop() {
super.onPause(); super.onStop();
unregisterIntentsReceiver(); unregisterIntentsReceiver();
} }