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:
parent
ff0ab3bd21
commit
cfe24b09a5
@ -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();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user