Kaydet (Commit) 710fc472 authored tarafından Artur Dryomov's avatar Artur Dryomov

Fix for blinking while getting back to the computers activity.

Change-Id: I5ce3c6462b0d4c1e1fed98cc0510ec9383523458
üst 8e336463
...@@ -133,9 +133,14 @@ public class ComputersFragment extends SherlockListFragment implements ServiceCo ...@@ -133,9 +133,14 @@ public class ComputersFragment extends SherlockListFragment implements ServiceCo
private void hideComputersList() { private void hideComputersList() {
ViewAnimator aViewAnimator = getViewAnimator(); 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() { private ViewAnimator getViewAnimator() {
...@@ -193,7 +198,7 @@ public class ComputersFragment extends SherlockListFragment implements ServiceCo ...@@ -193,7 +198,7 @@ public class ComputersFragment extends SherlockListFragment implements ServiceCo
} }
private void tearDownComputersAdapter() { private void tearDownComputersAdapter() {
getComputesList().setAdapter(null); setListAdapter(null);
} }
private ListView getComputesList() { private ListView getComputesList() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment