Fix Alert Dialog width on TV (#1010)

* Fix Alert Dialog width on TV

* Fix width for AlertDialogCustom on TV
This commit is contained in:
KingLucius 2024-03-25 01:55:37 +02:00 committed by GitHub
parent 9ef1f1cc41
commit 650c7583af
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -437,8 +437,8 @@
<style name="PreferenceTheme" parent="@style/AppTheme" />
<style name="Theme.AlertDialog" parent="ThemeOverlay.MaterialComponents.Dialog.Alert">
<item name="android:windowMinWidthMajor">@android:dimen/dialog_min_width_major</item>
<item name="android:windowMinWidthMinor">@android:dimen/dialog_min_width_minor</item>
<item name="android:windowMinWidthMajor">@dimen/abc_dialog_min_width_major</item>
<item name="android:windowMinWidthMinor">@dimen/abc_dialog_min_width_minor</item>
<item name="android:windowBackground">@drawable/dialog__window_background</item>
<item name="textAllCaps">false</item>
</style>
@ -506,8 +506,8 @@
<!-- colorPrimarySecond used because colorPrimary fails for no reason -->
<item name="colorControlActivated">?attr/colorPrimary</item>
<item name="android:windowMinWidthMajor">@android:dimen/dialog_min_width_major</item>
<item name="android:windowMinWidthMinor">@android:dimen/dialog_min_width_minor</item>
<item name="android:windowMinWidthMajor">@dimen/abc_dialog_min_width_major</item>
<item name="android:windowMinWidthMinor">@dimen/abc_dialog_min_width_minor</item>
<item name="android:windowBackground">@drawable/dialog__window_background</item>
</style>