Fix invisible alert dialog buttons when no animation

This commit is contained in:
max-klaus 2020-09-22 18:03:41 +03:00
parent 5a880e3956
commit f1b7547609

View file

@ -355,12 +355,12 @@
</style> </style>
<style name="OsmandDarkTheme.NoAnimation"> <style name="OsmandDarkTheme.NoAnimation">
<item name="alertDialogTheme">@style/Theme.AppCompat.Dialog.Alert.NoAnimation</item> <item name="alertDialogTheme">@style/Theme.MaterialComponents.Dialog.Alert.NoAnimation</item>
<item name="dialog_title_color">@color/marker_red</item> <item name="dialog_title_color">@color/marker_red</item>
</style> </style>
<style name="OsmandLightTheme.NoAnimation"> <style name="OsmandLightTheme.NoAnimation">
<item name="alertDialogTheme">@style/Theme.AppCompat.Light.Dialog.Alert.NoAnimation</item> <item name="alertDialogTheme">@style/Theme.MaterialComponents.Light.Dialog.Alert.NoAnimation</item>
</style> </style>
<style name="CoordinateInputEditText" parent="Widget.AppCompat.EditText"> <style name="CoordinateInputEditText" parent="Widget.AppCompat.EditText">
@ -543,11 +543,17 @@
<item name="android:textColor">@color/color_white</item> <item name="android:textColor">@color/color_white</item>
</style> </style>
<style name="Theme.AppCompat.Dialog.Alert.NoAnimation"> <style name="Theme.MaterialComponents.Dialog.Alert.NoAnimation">
<item name="buttonBarNegativeButtonStyle">@style/DialogButtonStyleDark</item>
<item name="buttonBarPositiveButtonStyle">@style/DialogButtonStyleDark</item>
<item name="buttonBarNeutralButtonStyle">@style/DialogButtonStyleDark</item>
<item name="android:windowAnimationStyle">@null</item> <item name="android:windowAnimationStyle">@null</item>
</style> </style>
<style name="Theme.AppCompat.Light.Dialog.Alert.NoAnimation"> <style name="Theme.MaterialComponents.Light.Dialog.Alert.NoAnimation">
<item name="buttonBarNegativeButtonStyle">@style/DialogButtonStyleLight</item>
<item name="buttonBarPositiveButtonStyle">@style/DialogButtonStyleLight</item>
<item name="buttonBarNeutralButtonStyle">@style/DialogButtonStyleLight</item>
<item name="android:windowAnimationStyle">@null</item> <item name="android:windowAnimationStyle">@null</item>
</style> </style>