diff options
| author | 2025-03-12 17:09:07 -0700 | |
|---|---|---|
| committer | 2025-03-12 17:11:50 -0700 | |
| commit | b2b59d1f5947c765883ea3679d1a0c6bb8d0f0f1 (patch) | |
| tree | d1a132ba1e5d01be91f78d4988c1f7f6b5773c35 /libs/androidfw/StringPool.cpp | |
| parent | 01fb3505bd9d23208dbbd73d5c504c9d1c054efe (diff) | |
Always update the PictureInPictureParams
In PipTaskListener#setPictureInPictureParams, we used to do a
copyOnlySet when receive a different PictureInPictureParams.
For the following scenario, given the internal mPictureInPictureParams
variable contains 3 actions
- App sends a param with 0 action
- Detected action change, actions are wiped out from menu
- copyOnlySet is called, 3 actions remain in mPictureInPictureParams
- App sends a param with 3 actions
- Detected no action change, due to copyOnlySet
- PiP menu remains empty
Fixes this issue by directly assign the value, instead of copyOnlyset
Flag: com.android.wm.shell.enable_pip2
Bug: 401557393
Video: http://recall/-/aaaaaabFQoRHlzixHdtY/bWFkgdCmLEGPyx2sTBYyP0
Test: manually, follow the reproduce steps in bug
Test: atest WMShellUnitTests:PipTaskListenerTest
Change-Id: I3a79082b71401a93a3a04707cf60ba494ceeb8ce
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions