Don't crash adaptive dialogs when the theme has no window animations
dallo28 committed
- Author
- dallo28 · dallo28@users.noreply.github.comOct 28, 2026 at 09:47
- Committer
- dallo28 · dallo28@users.noreply.github.comOct 28, 2026 at 09:47
- Parents
- 3de37c8cfb03
Don't crash adaptive dialogs when the theme has no window animations AlertDialogDecor reads windowEnterAnimation/windowExitAnimation from the dialog theme's windowAnimationStyle, which comes from the platform's Theme.Dialog, and falls back to -1 when they are missing. The id was passed to AnimationUtils.loadAnimation() unchecked, so on ROMs whose dialog animation style leaves them unset, opening an adaptive dialog (Create Link in the chat input, quick reply and business link rename, fact check) crashed with Resources$NotFoundException: Resource ID #0xffffffff. Skip the missing animation and fade the dialog content together with the dim instead. Dismissal still goes through the dim animator, so the view is removed and the dismiss listener runs as before.
1 file changed+42−16