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