Merge "Fix a bug in show surface updates"
This commit is contained in:
committed by
Android (Google) Code Review
commit
65103007c8
@@ -81,8 +81,12 @@ public class ShowSurfaceUpdatesPreferenceController extends DeveloperOptionsPref
|
||||
|
||||
@Override
|
||||
protected void onDeveloperOptionsSwitchDisabled() {
|
||||
writeShowUpdatesSetting(false);
|
||||
mPreference.setChecked(false);
|
||||
if (mPreference.isChecked()) {
|
||||
// Writing false to the preference when the setting is already off will have a
|
||||
// side effect of turning on the preference that we wish to avoid
|
||||
writeShowUpdatesSetting(false);
|
||||
mPreference.setChecked(false);
|
||||
}
|
||||
mPreference.setEnabled(false);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user