Merge "Convert Magnify controller to TogglePrefController" into pi-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
cd28a977ca
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user