Merge "Update when Desktop Mode Dev Option is enabled by default." into main

This commit is contained in:
Pierre Barbier de Reuille
2025-01-29 12:39:46 -08:00
committed by Android (Google) Code Review

View File

@@ -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);
}