Merge "Update when Desktop Mode Dev Option is enabled by default." into main
This commit is contained in:
committed by
Android (Google) Code Review
commit
574ba31dd3
@@ -89,7 +89,7 @@ public class DesktopModePreferenceController extends DeveloperOptionsPreferenceC
|
||||
final boolean shouldDevOptionBeEnabled = switch (toggleOverride) {
|
||||
case OVERRIDE_OFF -> false;
|
||||
case OVERRIDE_ON -> true;
|
||||
case OVERRIDE_UNSET -> DesktopModeStatus.shouldDevOptionBeEnabledByDefault();
|
||||
case OVERRIDE_UNSET -> DesktopModeStatus.shouldDevOptionBeEnabledByDefault(mContext);
|
||||
};
|
||||
((TwoStatePreference) mPreference).setChecked(shouldDevOptionBeEnabled);
|
||||
}
|
||||
|
Reference in New Issue
Block a user