Files
frameworks_base/core/java/android/app
Hongwei Wang e37b84d19e Set isInPictureInPictureMode earlier
Per https://developer.android.com/guide/topics/ui/picture-in-picture
After app requests enterPictureInPictureMode and receives onPause
callback, it will continue playback if isInPictureInPictureMode is true.

However, with ag/11273366, isInPictureInPictureMode will now return true
after the new configuration is dispatched to app, which happens after onPause.
This may cause app, following the guidance, to cease playback in PiP mode.

Fixes this by setting the internal mIsInPictureInPictureMode earlier
right in enterPictureInPictureMode

Video: http://go/recall/-/aaaaaabFQoRHlzixHdtY/fVRqG7UWoKkQQhFxPkzcUt
Bug: 156924033
Test: manually enter PiP from Twitch
Change-Id: I8e0865076fcb756cfa5db39901f460ab5ad69b99
2020-05-28 11:41:39 -07:00
..
2020-02-06 08:41:26 +00:00
2019-11-11 16:12:46 -08:00
2020-04-08 21:30:24 +08:00
2020-05-27 12:47:10 -04:00
2020-04-28 20:06:03 -07:00
2020-04-28 15:02:26 +01:00
2020-03-03 15:06:02 -08:00
2020-04-14 16:57:18 +08:00