summaryrefslogtreecommitdiff
path: root/android
diff options
context:
space:
mode:
authorArtur Dryomov <artur.dryomov@gmail.com>2013-09-01 18:32:50 +0300
committerArtur Dryomov <artur.dryomov@gmail.com>2013-09-03 12:22:46 +0300
commitcfe24b09a5684909b0a84dcad47e14b7d5de8409 (patch)
treedb6ce1f7cf88de3f7f39664a10659cc7d115c4a9 /android
parentff0ab3bd21ce6fb9ed43b37535878f8ef1d76890 (diff)
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
Diffstat (limited to 'android')
-rw-r--r--android/sdremote/src/org/libreoffice/impressremote/fragment/ComputerConnectionFragment.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/android/sdremote/src/org/libreoffice/impressremote/fragment/ComputerConnectionFragment.java b/android/sdremote/src/org/libreoffice/impressremote/fragment/ComputerConnectionFragment.java
index 05172b56a8a3..2779370bcd5b 100644
--- a/android/sdremote/src/org/libreoffice/impressremote/fragment/ComputerConnectionFragment.java
+++ b/android/sdremote/src/org/libreoffice/impressremote/fragment/ComputerConnectionFragment.java
@@ -133,8 +133,8 @@ public class ComputerConnectionFragment extends SherlockFragment implements Serv
}
@Override
- public void onResume() {
- super.onResume();
+ public void onStart() {
+ super.onStart();
registerIntentsReceiver();
}
@@ -285,8 +285,8 @@ public class ComputerConnectionFragment extends SherlockFragment implements Serv
}
@Override
- public void onPause() {
- super.onPause();
+ public void onStop() {
+ super.onStop();
unregisterIntentsReceiver();
}