summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Riddle Hsu <riddlehsu@google.com> 2023-06-09 22:28:14 +0800
committer Riddle Hsu <riddlehsu@google.com> 2023-06-12 22:17:37 +0800
commitca20e306074ea7da837f042f797e39fe2853594e (patch)
tree9c65d00d1c0a655ec046f9dabf93a11401a37c99 /libs/androidfw/StringPool.cpp
parent0f529d03a8b81f8562670acf0d09d9577d219c80 (diff)
Do not apply letterbox when entering PiP
Because the design of animation always animate while the activity is in fullscreen appearance, the PiP activity still needs to apply letterbox when exiting PiP. But when entering PiP, the condition is the same: task windowing mode=pinned activity windowing mode=fullscreen So check mWaitForEnteringPinnedMode to exclude the entering case: The order of applying WCT after the enter-pip animation is "set PiP task bounds" -> "clear override of activity windowing mode". The configuration change from "set PiP task bounds" will hit the windowing mode condition as above. This also replaces I83c5d32ef7cff4b3b6c85a698d068935c83c9423. Fix: 283008030 Test: RootWindowContainerTests#testSingleActivityTaskEnterPip Test: adb shell wm set-letterbox-style --cornerRadius 400 An activity declares fixed orientation and requests to enter PiP. The PiP activity should not show weird round corner. Change-Id: I22e294601b628adab9732bec373506c8543f116e
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions