devon: overlay: Enable min & peak refresh rate toggle in Settings
Change-Id: Ia3e1a5ef92b666747cf1d8e362e88a09b21c2444
This commit is contained in:
@@ -43,6 +43,7 @@ PRODUCT_PACKAGES += \
|
||||
# Overlay
|
||||
PRODUCT_PACKAGES += \
|
||||
FrameworksResDevice \
|
||||
SettingsResDevice \
|
||||
SystemUIResDevice \
|
||||
WifiResDevice
|
||||
|
||||
|
||||
9
resource-overlay/device/Settings/Android.bp
Normal file
9
resource-overlay/device/Settings/Android.bp
Normal file
@@ -0,0 +1,9 @@
|
||||
//
|
||||
// SPDX-FileCopyrightText: The LineageOS Project
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
//
|
||||
|
||||
runtime_resource_overlay {
|
||||
name: "SettingsResDevice",
|
||||
vendor: true,
|
||||
}
|
||||
13
resource-overlay/device/Settings/AndroidManifest.xml
Normal file
13
resource-overlay/device/Settings/AndroidManifest.xml
Normal file
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
SPDX-FileCopyrightText: The LineageOS Project
|
||||
SPDX-License-Identifier: Apache-2.0
|
||||
-->
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="com.android.settings.overlay.device">
|
||||
|
||||
<overlay
|
||||
android:isStatic="true"
|
||||
android:priority="500"
|
||||
android:targetPackage="com.android.settings" />
|
||||
</manifest>
|
||||
12
resource-overlay/device/Settings/res/values/config.xml
Normal file
12
resource-overlay/device/Settings/res/values/config.xml
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
SPDX-FileCopyrightText: The LineageOS Project
|
||||
SPDX-License-Identifier: Apache-2.0
|
||||
-->
|
||||
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
|
||||
<!-- Whether to show min refresh rate in display settings -->
|
||||
<bool name="config_show_min_refresh_rate_switch">true</bool>
|
||||
|
||||
<!-- Whether to show peak refresh rate in display settings -->
|
||||
<bool name="config_show_peak_refresh_rate_switch">true</bool>
|
||||
</resources>
|
||||
Reference in New Issue
Block a user