summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Riddle Hsu <riddlehsu@google.com> 2023-04-11 18:38:25 +0800
committer Riddle Hsu <riddlehsu@google.com> 2023-04-11 20:17:13 +0800
commit06f9bb38b382e2a9597b0db99a7ef97a976f3b5f (patch)
tree668f7b48a467c250d1e74d215af20c44a7585f46 /libs/androidfw/StringPool.cpp
parent9338d0cce3e9e7208c92f4d97b0ead44e37f3ad9 (diff)
Centralize assignment of pip enter animation type
In PipTransition, the places to check enter animation type may have different orders with different scenarios. Assume swiping a fullscreen landscape app which can enter PiP to portrait home: Api request on foreground: augmentRequest -> startEnterAnimation -> handleRotateDisplay Api request on going to background: startEnterAnimation -> handleRotateDisplay Swipe to home: Auto-pip: augmentRequest -> handleRotateDisplay -> startEnterAnimation No auto-pip: handleRotateDisplay -> startEnterAnimation To reduce the complexity of animation type management, assign the type at entry of entering pip: PipTaskOrganizer#onTaskAppeared Then PipTransition only needs to read it. Note that for swiping auto-pip, the type is always ignored because the animation is done by recents animation. Bug: 276438425 Test: Swipe a landscape app into pip in portrait without auto-pip. The PiP should fade in after the swipe animation. Change-Id: I98e459fb9913d713cd3b8d44dbb691af61862c56
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions