Merge "Convert Magnify controller to TogglePrefController" into pi-dev

This commit is contained in:
TreeHugger Robot
2018-05-17 00:43:04 +00:00
committed by Android (Google) Code Review
8 changed files with 131 additions and 26 deletions

View File

@@ -59,9 +59,6 @@ public abstract class GesturePreferenceController extends TogglePreferenceContro
public void updateState(Preference preference) {
super.updateState(preference);
if (preference != null) {
if (!(preference instanceof TwoStatePreference)) {
preference.setSummary(getSummary());
}
// Different meanings of "Enabled" for the Preference and Controller.
preference.setEnabled(canHandleClicks());
}