commit | 5690a5782efdc4d37dd58c905a5b581dbfce2f68 | [log] [tgz] |
---|---|---|
author | Riddle Hsu <riddlehsu@google.com> | Tue Oct 24 19:35:04 2023 +0800 |
committer | Riddle Hsu <riddlehsu@google.com> | Tue Oct 24 19:35:04 2023 +0800 |
tree | e3e17d7865ae2a335ef69f282cb6df6b9ce8d7ab | |
parent | c9d20f37276dbdedbe6579f2e0be02eece55996f [diff] |
Fix NPE in allowOverlappingTransitions The OneShotPreDrawListener from triggerViewsReady() -> sendSharedElementDestination() may be called after clearState() if the activity has stopped before allowing to draw. Then it will cause NPE because clearState() set mWindow to null. Bug: 306974798 Test: Use scene transition and stop draw by pre-draw listener. Then allow to draw after activity is stopped. Change-Id: I3a714f97a6abcee51ca004ca3c919250c5d5257f