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

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

Change-Id: I66c7d479141ec27fd0a5a146453b579f7c998a70
This commit is contained in:
TreeHugger Robot
2021-05-31 09:08:19 +00:00
committed by Automerger Merge Worker

View File

@@ -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;