Merge "Disable preference list animation for Internet Settings" into sc-dev am: 3117d90824 am: 22ccfbf871

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/14772150

Change-Id: I5f436d9ba378daa8769d6813b8f12c717f404264
This commit is contained in:
TreeHugger Robot
2021-05-31 09:13:28 +00:00
committed by Automerger Merge Worker

View File

@@ -416,9 +416,14 @@ public class NetworkProviderSettings extends RestrictedSettingsFragment
@Override @Override
public void onResume() { public void onResume() {
final Activity activity = getActivity();
super.onResume(); 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, // Because RestrictedSettingsFragment's onResume potentially requests authorization,
// which changes the restriction state, recalculate it. // which changes the restriction state, recalculate it.
final boolean alreadyImmutablyRestricted = mIsRestricted; final boolean alreadyImmutablyRestricted = mIsRestricted;