Switch to whitelist for animations

Disable animations for all SettingsPreferenceFragments, unless they
explicitly ask for them before creating their preference screens.

Turn it on for all fragments using the cached removal currently.

Bug: 27713314
Change-Id: I1bc14e7aeb3ee5b8ddb4f3547f472305cd312edf
This commit is contained in:
Jason Monk
2016-03-18 14:23:01 -04:00
parent 297ce9aaf3
commit f38fb38f26
6 changed files with 13 additions and 8 deletions

View File

@@ -208,14 +208,6 @@ public class SecuritySettings extends SettingsPreferenceFragment
return resid;
}
@Override
public void setPreferenceScreen(PreferenceScreen preferenceScreen) {
if (!preferenceScreen.isAttached()) {
preferenceScreen.setShouldUseGeneratedIds(false);
}
super.setPreferenceScreen(preferenceScreen);
}
/**
* Important!
*