commit | b8a2a026a59175f175580e35c13ec3abbca895a8 | [log] [tgz] |
---|---|---|
author | Winson Chung <winsonc@google.com> | Mon Aug 15 23:44:42 2022 +0000 |
committer | Winson Chung <winsonc@google.com> | Wed Aug 17 20:27:57 2022 +0000 |
tree | 1001641ca74441defd9adeb8049737bf908ec5cb | |
parent | cf03d0446942c11bb8c229ad147fac9e830f88d5 [diff] |
Defer adding surface changed callback until view root is valid - It appears there are cases where the view root is not valid (in which case schedule() returns false and we don't wait to handle the callback) which causes an NPE, but in these cases we don't need to add the surface changed callback at all. Bug: 202776119 Bug: 242347940 Bug: 242897135 Test: Launch an app with sharesheet, swipe up and verify that screenshot callbacks Change-Id: Icc3afc604bd925c5d49c693b7de51755f5a8bd42