Open akelian opened 1 month ago
Hey @akelian,
Could you try overriding your dialog's windowAnimationStyle and see if the issue goes away on your debug build? Like this:
<style name="Theme.App" parent="Theme.Material3.*">
...
<item name="materialAlertDialogTheme">@style/ThemeOverlay.MyApp.MaterialAlertDialog</item>
</style>
<style name="ThemeOverlay.MyApp.MaterialAlertDialog" parent="ThemeOverlay.Material3.MaterialAlertDialog">
<item name="android:windowAnimationStyle">@null</item>
</style>
Just trying to isolate the problem. I think it might be coming from an issue parsing the interpolator being used for our dialogs.
Hey @akelian,
Could you try overriding your dialog's windowAnimationStyle and see if the issue goes away on your debug build? Like this:
<style name="Theme.App" parent="Theme.Material3.*"> ... <item name="materialAlertDialogTheme">@style/ThemeOverlay.MyApp.MaterialAlertDialog</item> </style> <style name="ThemeOverlay.MyApp.MaterialAlertDialog" parent="ThemeOverlay.Material3.MaterialAlertDialog"> <item name="android:windowAnimationStyle">@null</item> </style>
Just trying to isolate the problem. I think it might be coming from an issue parsing the interpolator being used for our dialogs.
Hi, For some reason I couldn't reproduce the bug. I had previously changed the MaterialBuilderDialog to AlertDialog.Builder to fix the issue, but now that I've changed it back the issue doesn't appear. So I can't say whether your suggestion will help or not.
Description: App freezes when i'm calling dismiss() function from dialog which built with MaterialAlertDialogBuilder. In case of AlertDialog.Builder() it's okay. Also somehow problem appears only in debug build, while in release it works fine. In the moment of dismissing android system (not app) throw this excpetion:
Expected behavior: The dialog window should be closed
Source code:
gradle code:
proguard rules:
Minimal sample app repro: Unfortunaly can't provide any sample
Android API version: api ver. 30
Material Library version: lib ver. 1.12.0
Device: Lenovo TB-X306X