Remove unnecessary onDeveloperOptionsSwitchEnabled/Disabled override.
- default implementation has been added in the super class to handle enabling/disabling the preference when the master developer options switch it turned on/off. Removing all subclass that originally implemented the methods that only contains the default behavior. Bug: 73955632 Test: make RunSettingsRoboTests Change-Id: I13c372c2ab498a5786b40cdc1ad3b5f3424abb5a
This commit is contained in:
@@ -34,7 +34,6 @@ public class MemoryUsagePreferenceController extends DeveloperOptionsPreferenceC
|
||||
|
||||
private static final String MEMORY_USAGE_KEY = "memory";
|
||||
|
||||
private Preference mPreference;
|
||||
private ProcStatsData mProcStatsData;
|
||||
|
||||
public MemoryUsagePreferenceController(Context context) {
|
||||
@@ -50,7 +49,6 @@ public class MemoryUsagePreferenceController extends DeveloperOptionsPreferenceC
|
||||
public void displayPreference(PreferenceScreen screen) {
|
||||
super.displayPreference(screen);
|
||||
|
||||
mPreference = screen.findPreference(getPreferenceKey());
|
||||
mProcStatsData = getProcStatsData();
|
||||
setDuration();
|
||||
}
|
||||
|
Reference in New Issue
Block a user