summaryrefslogtreecommitdiff
path: root/android
diff options
context:
space:
mode:
authorArtur Dryomov <artur.dryomov@gmail.com>2013-09-06 22:01:40 +0300
committerArtur Dryomov <artur.dryomov@gmail.com>2013-09-07 11:55:54 +0300
commit710fc4728f5b3a51b1be1b3ee1400b372e734c1c (patch)
treef96e34da0108e6915351dfcb342e7667681b1445 /android
parent8e33646304c34a926a7e8df0ed18c5fc0bc40a3d (diff)
Fix for blinking while getting back to the computers activity.
Change-Id: I5ce3c6462b0d4c1e1fed98cc0510ec9383523458
Diffstat (limited to 'android')
-rw-r--r--android/sdremote/src/org/libreoffice/impressremote/fragment/ComputersFragment.java11
1 files changed, 8 insertions, 3 deletions
diff --git a/android/sdremote/src/org/libreoffice/impressremote/fragment/ComputersFragment.java b/android/sdremote/src/org/libreoffice/impressremote/fragment/ComputersFragment.java
index 410079ee9ff6..b6d2b95eac0c 100644
--- a/android/sdremote/src/org/libreoffice/impressremote/fragment/ComputersFragment.java
+++ b/android/sdremote/src/org/libreoffice/impressremote/fragment/ComputersFragment.java
@@ -133,9 +133,14 @@ public class ComputersFragment extends SherlockListFragment implements ServiceCo
private void hideComputersList() {
ViewAnimator aViewAnimator = getViewAnimator();
- ViewGroup aProgressBarLayout = getProgressBarLayout();
- aViewAnimator.setDisplayedChild(aViewAnimator.indexOfChild(aProgressBarLayout));
+ int aProgressBarLayoutIndex = aViewAnimator.indexOfChild(getProgressBarLayout());
+
+ if (aViewAnimator.getDisplayedChild() == aProgressBarLayoutIndex) {
+ return;
+ }
+
+ aViewAnimator.setDisplayedChild(aProgressBarLayoutIndex);
}
private ViewAnimator getViewAnimator() {
@@ -193,7 +198,7 @@ public class ComputersFragment extends SherlockListFragment implements ServiceCo
}
private void tearDownComputersAdapter() {
- getComputesList().setAdapter(null);
+ setListAdapter(null);
}
private ListView getComputesList() {