DatePickerDialog: fix theme

Extend from Dialog, not Dialog.Alert.

Signed-off-by: Álvaro Brey Vilas <alvaro.brey@nextcloud.com>
This commit is contained in:
Álvaro Brey Vilas 2021-12-09 14:36:01 +01:00
parent 694b8fda56
commit bcafbbbd5b
No known key found for this signature in database
GPG key ID: 2585783189A62105

View file

@ -76,17 +76,16 @@
<item name="colorError">@color/primary</item>
</style>
<style name="FallbackDatePickerDialogTheme" parent="Theme.MaterialComponents.DayNight.Dialog.Alert">
<style name="FallbackDatePickerDialogTheme" parent="Theme.MaterialComponents.DayNight.Dialog">
<item name="colorPrimary">@color/bg_default</item>
<item name="colorAccent">@color/bg_fallback_highlight</item>
<item name="android:textAllCaps">false</item>
<item name="android:windowBackground">@color/bg_default</item>
<item name="android:textColor">@color/fg_inverse</item>
<item name="android:datePickerStyle">@style/DatePickerStyle</item>
<item name="colorControlHighlight">@color/bg_fallback_highlight</item>
<item name="colorControlActivated">@color/bg_fallback_highlight</item>
</style>
<style name="DatePickerStyle" parent="">
<style name="DatePickerStyle">
<item name="android:headerBackground">@color/bg_fallback_highlight</item>
<item name="android:datePickerMode">calendar</item>
</style>