commit | ca25625601c0d74a819f42f686ae5c2cf38bb8dd | [log] [tgz] |
---|---|---|
author | Ben Lin <linben@google.com> | Wed Mar 24 17:09:35 2021 -0700 |
committer | Ben Lin <linben@google.com> | Thu Apr 15 13:42:17 2021 -0700 |
tree | ecdff872135389156f8e36dbdfa1a350606cdbe1 | |
parent | 1430546720742776de5dfcedf5267986aa07c1f6 [diff] |
Add Activity#onPictureInPictureUiStateChanged and PictureInPictureUiState. This adds a new API on Activity such that app developers can get signals when certain PiP UI states change, e.g. stash/unstashed. The idea is that when PiP is stashed, the activity will get a signal to do anything they wish, such as pausing/resuming video-like contents. Bug: 182409584 Test: atest PinnedStackTests#testPictureInPictureStateChangeCallback Change-Id: I308f3f1c3af8d1a54b63311fb3beaee77d6c7922