Merge "Disable preference list animation for Internet Settings" into sc-dev am: 3117d90824
am: 22ccfbf871
am: 998e8d3b21
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/14772150 Change-Id: I0e8f3c1b8c3f3eec9f87f448361e067d902e11c8
This commit is contained in:
@@ -416,9 +416,14 @@ public class NetworkProviderSettings extends RestrictedSettingsFragment
|
||||
|
||||
@Override
|
||||
public void onResume() {
|
||||
final Activity activity = getActivity();
|
||||
super.onResume();
|
||||
|
||||
// Disable the animation of the preference list
|
||||
final RecyclerView prefListView = getListView();
|
||||
if (prefListView != null) {
|
||||
prefListView.setItemAnimator(null);
|
||||
}
|
||||
|
||||
// Because RestrictedSettingsFragment's onResume potentially requests authorization,
|
||||
// which changes the restriction state, recalculate it.
|
||||
final boolean alreadyImmutablyRestricted = mIsRestricted;
|
||||
|
Reference in New Issue
Block a user