From cfe24b09a5684909b0a84dcad47e14b7d5de8409 Mon Sep 17 00:00:00 2001 From: Artur Dryomov Date: Sun, 1 Sep 2013 18:32:50 +0300 Subject: [PATCH] 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 --- .../fragment/ComputerConnectionFragment.java | 8 ++++---- 1 file 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(); }