Bug 871651 - Only update user visible hint if it has changed (r=sriram)

This commit is contained in:
Lucas Rocha 2013-08-16 23:08:01 +01:00
parent 6cd98cf5cc
commit 04425c18bb

View File

@ -191,6 +191,10 @@ abstract class HomeFragment extends Fragment {
@Override
public void setUserVisibleHint (boolean isVisibleToUser) {
if (isVisibleToUser == getUserVisibleHint()) {
return;
}
super.setUserVisibleHint(isVisibleToUser);
loadIfVisible();
}