Fix flickers on the Location page
Use the UiBlocker and its delegate method to prevent the flicker. Fixes: 220837804 Test: Go to Settings > Location and see all items appearing at the same time. Change-Id: I2095289b9436ca66970b6a868d5c9780f2b19664
This commit is contained in:
@@ -131,12 +131,16 @@ public class RecentLocationAccessPreferenceController extends LocationBasePrefer
|
||||
banner.setSelectable(false);
|
||||
mCategoryRecentLocationRequests.addPreference(banner);
|
||||
}
|
||||
|
||||
if (mUiBlockListener != null) {
|
||||
mUiBlockListener.onBlockerWorkFinished(this);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onLocationModeChanged(int mode, boolean restricted) {
|
||||
boolean enabled = mLocationEnabler.isEnabled(mode);
|
||||
mCategoryRecentLocationRequests.setVisible(enabled);
|
||||
updatePreferenceVisibilityDelegate(mCategoryRecentLocationRequests, enabled);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user