Skip to content

Commit 2ae765f

Browse files
someone5678joeyhuab
authored andcommitted
SettingsTheme: Correctly theming AlertDialog with M3 colors
Change-Id: I25755bded0e38fb5f43f49e70126ee5d73a2856d Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
1 parent 5788056 commit 2ae765f

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

  • packages/SettingsLib/SettingsTheme/res/values

packages/SettingsLib/SettingsTheme/res/values/themes.xml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,9 @@
3232
</style>
3333

3434
<style name="Theme.AlertDialog.SettingsLib" parent="@style/Theme.AppCompat.DayNight.Dialog.Alert">
35-
<!-- TODO(b/189308264): fix the crash in Android R if set the attributes:
36-
<item name="colorAccent">@*android:color/accent_device_default_light</item>
37-
<item name="android:colorBackground">@color/settingslib_dialog_background</item>
38-
<item name="dialogCornerRadius">@dimen/settingslib_dialogCornerRadius</item>
39-
-->
35+
<item name="colorAccent">@color/settingslib_materialColorPrimary</item>
36+
<item name="android:colorBackground">@color/settingslib_materialColorSurfaceContainerHigh</item>
37+
4038
<item name="android:windowSoftInputMode">adjustResize</item>
4139
<item name="android:clipToPadding">true</item>
4240
<item name="android:clipChildren">true</item>

0 commit comments

Comments
 (0)