Bug 871651 - Only update user visible hint if it has changed (r=sriram)
authorLucas Rocha <lucasr@mozilla.com>
Fri, 16 Aug 2013 23:08:01 +0100
changeset 143552 7a8a1649d30adb2fd91f464ac0a6d602a8e37d35
parent 143551 8e581c890c8800a1fe532f33d706832750e78989
child 143553 d423d46e50a9056ce058f99e6e356d40a3b676f5
push id25130
push userlrocha@mozilla.com
push dateWed, 21 Aug 2013 09:41:27 +0000
treeherdermozilla-central@b2486721572e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssriram
bugs871651
milestone26.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 871651 - Only update user visible hint if it has changed (r=sriram)
mobile/android/base/home/HomeFragment.java
--- a/mobile/android/base/home/HomeFragment.java
+++ b/mobile/android/base/home/HomeFragment.java
@@ -186,16 +186,20 @@ abstract class HomeFragment extends Frag
             }
         }
 
         return false;
     }
 
     @Override
     public void setUserVisibleHint (boolean isVisibleToUser) {
+        if (isVisibleToUser == getUserVisibleHint()) {
+            return;
+        }
+
         super.setUserVisibleHint(isVisibleToUser);
         loadIfVisible();
     }
 
     void setCanLoadHint(boolean canLoadHint) {
         if (mCanLoadHint == canLoadHint) {
             return;
         }