Settings: do not hardcode aapt package name in resources
CarDeveloperOptions includes Settings-core as static library:
https://android.googlesource.com/platform/packages/services/Car/+/refs/heads/android13-platform-release/packages/CarDeveloperOptions/Android.bp#31
Resources will build as com.android.car.developeroptions and not com.android.settings in this case
Change-Id: Ia41790d353679a7cb78c27fde0fe369e30892dfe
diff --git a/res/xml/display_settings.xml b/res/xml/display_settings.xml
index 976e496..7a9250b 100644
--- a/res/xml/display_settings.xml
+++ b/res/xml/display_settings.xml
@@ -197,7 +197,7 @@
android:title="@string/wake_when_plugged_or_unplugged_title"
android:summary="@string/wake_when_plugged_or_unplugged_summary"
android:defaultValue="@*android:bool/config_unplugTurnsOnScreen"
- settings:requiresConfig="@*com.android.settings:bool/config_show_top_level_battery" />
+ settings:requiresConfig="@bool/config_show_top_level_battery" />
<lineageos.preference.LineageSystemSettingSwitchPreference
android:key="high_touch_polling_rate_enable"
diff --git a/res/xml/sound_settings.xml b/res/xml/sound_settings.xml
index 34dbfd0..4fa837f 100644
--- a/res/xml/sound_settings.xml
+++ b/res/xml/sound_settings.xml
@@ -207,7 +207,7 @@
<!-- Custom charging sounds -->
<lineageos.preference.LineagePartsPreference
android:key="charging_sounds_settings"
- settings:requiresConfig="@*com.android.settings:bool/config_show_charging_sounds"
+ settings:requiresConfig="@bool/config_show_charging_sounds"
settings:replacesKey="charging_sounds" />
<!-- Docking sounds -->