A framework for building native applications using React
Fix crash for Modal not attached to window manager (#46758)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/46758 There are some occurrencies where the Modal results not attached to the Window, perhaps when the app is backgrounded. This trigger an exception `java.lang.IllegalArgumentException: View=DecorView@b9f88af[AdsManagerActivity] not attached to window manager`.\ This was fixed already but the conversion from Java to Kotlin missed a condition in the `||` clause. We are adding it back. ## Changelog [Android][Fixed] - Fix crash for Modal not attached to window manager ## Facebook The original fix is in this diff D22264672 by mdvacca Also see this post: https://fb.workplace.com/groups/rn.support/permalink/27047414764880449/ Reviewed By: cortinico Differential Revision: D63700769 fbshipit-source-id: bc8a44868d5cacb8822e1646c2b7643682f45e1b
R
Riccardo Cipolleschi committed
eaa780de1c799bf35fded2914d27b1953b093340
Parent: 6d6dd99
Committed by Facebook GitHub Bot <[email protected]>
on 10/1/2024, 5:59:40 PM