summaryrefslogtreecommitdiff
path: root/android/sdremote
diff options
context:
space:
mode:
Diffstat (limited to 'android/sdremote')
-rw-r--r--android/sdremote/src/org/libreoffice/impressremote/fragment/ComputersFragment.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/android/sdremote/src/org/libreoffice/impressremote/fragment/ComputersFragment.java b/android/sdremote/src/org/libreoffice/impressremote/fragment/ComputersFragment.java
index 81e6ed91a281..5527ea4d61c4 100644
--- a/android/sdremote/src/org/libreoffice/impressremote/fragment/ComputersFragment.java
+++ b/android/sdremote/src/org/libreoffice/impressremote/fragment/ComputersFragment.java
@@ -167,6 +167,10 @@ public class ComputersFragment extends SherlockListFragment implements ServiceCo
}
private void loadComputers() {
+ if (!isVisible()) {
+ return;
+ }
+
if (getComputers().isEmpty()) {
hideComputersList();
setUpProgressMessage();
@@ -225,6 +229,10 @@ public class ComputersFragment extends SherlockListFragment implements ServiceCo
@Override
public void run() {
+ if (!isVisible()) {
+ return;
+ }
+
if (!isShowingProgressMessageRequired()) {
return;
}