summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorHongwei Wang <hwwang@google.com>2020-04-08 13:23:45 -0700
committerHongwei Wang <hwwang@google.com>2020-04-13 14:09:53 -0700
commite8e32863f43315f801e7b336a1d4dc6f687bec54 (patch)
treee87bbe0afff9003b8af3f40180b94a4c73b3a29f /tools/aapt2/java/JavaClassGenerator.cpp
parentbce51ad5b588ab5ea8cd00cafd8eab83f9349e13 (diff)
Ensure TaskOrganizer works for newly created pinned stack
Steps to reproduce the bug: - Restart the device - Open Duo app and make a call - When in call, try entering PiP Duo application contains multiple activities and we create a new stack from its top activity when moving it to pinned mode. This newly created stack does not carry on the existing PictureInPictureParams, nor it is marked as visible. Therefore, no onTaskAppeared would be sent to the task organizer. Also in this change: - Removed aspectRatio and sourceHintBounds used to be passed into RootWindowContainer#moveActivityToPinnedStack, they are used in moveActivityToPinnedStack and one should refer to the PictureInPictureParams set on ActivityRecord - Added a null check for existing token when onTaskInfoChanged is invoked in PipTaskOrganizer, it should be a fatal error that onTaskInfoChanged is called ahead of onTaskAppeared Bug: 152933995 Test: manually enter/exit PiP mode for Duo app Test: atest RootActivityContainerTests Test: atest ActivityRecordTests Change-Id: Ifa9ad8768ba47ce043b8dd86cadc729931edcb14
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions