Settings: Move force dark mode to dark mode settings

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
This commit is contained in:
Pranav Vashi
2025-08-20 00:51:50 +05:30
committed by Joey
parent 2d2fc07f94
commit f3b6cea771
5 changed files with 7 additions and 7 deletions

View File

@@ -91,4 +91,9 @@
android:summary="@string/berry_black_theme_summary"
android:defaultValue="false"
settings:requiresPackage="org.lineageos.overlay.customization.blacktheme" />
<SwitchPreferenceCompat
android:key="hwui_force_dark"
android:title="@string/hwui_force_dark_title"
android:summary="@string/hwui_force_dark_summary" />
</PreferenceScreen>

View File

@@ -617,11 +617,6 @@
android:entries="@array/show_non_rect_clip_entries"
android:entryValues="@array/show_non_rect_clip_values" />
<SwitchPreferenceCompat
android:key="hwui_force_dark"
android:title="@string/hwui_force_dark_title"
android:summary="@string/hwui_force_dark_summary" />
<SwitchPreferenceCompat
android:key="force_msaa"
android:title="@string/force_msaa"

View File

@@ -793,7 +793,6 @@ public class DevelopmentSettingsDashboardFragment extends RestrictedDashboardFra
controllers.add(new DebugGpuOverdrawPreferenceController(context));
controllers.add(new DebugNonRectClipOperationsPreferenceController(context));
controllers.add(new GameDefaultFrameRatePreferenceController(context));
controllers.add(new ForceDarkPreferenceController(context));
controllers.add(new ForceMSAAPreferenceController(context));
controllers.add(new HardwareOverlaysPreferenceController(context));
controllers.add(new SimulateColorSpacePreferenceController(context));

View File

@@ -75,6 +75,7 @@ public class DarkModeSettingsFragment extends DashboardFragment {
DARK_THEME_END_TIME, this);
controllers.add(mCustomStartController);
controllers.add(mCustomEndController);
controllers.add(new ForceDarkPreferenceController(context));
return controllers;
}

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package com.android.settings.development;
package com.android.settings.display.darkmode;
import android.content.Context;
import android.os.SystemProperties;