Settings: Move force dark mode to dark mode settings
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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));
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
Reference in New Issue
Block a user