commit | eb0a7deefe644ccfe404bc0439cf012e0301dc65 | [log] [tgz] |
---|---|---|
author | Kazuki Takise <takise@google.com> | Tue Feb 20 14:53:24 2024 +0900 |
committer | Kazuki Takise <takise@google.com> | Wed Feb 21 03:57:46 2024 +0000 |
tree | ebab30054c0061f37e177243330cbb7f22413f34 | |
parent | 5b476f040f6da1589b22f90175f467cc07f2b5fb [diff] |
Only dispatch onPipUiStateChanged when it's not finishing ATMS#onPictureInPictureUiStateChanged() checks the existence of ActivityRecord before dispatching the callback, but if the activity finishes itself, the client-side instance might be invalid already at this point. Bug: 325986364 Test: atest ActivityLifecyclePipTests#testDestroyPip Change-Id: I5eb6503cb0bf3132ef4fa87360f9e45842435ad0