diff options
author | Winson Chung <winsonc@google.com> | 2017-10-23 11:10:58 -0700 |
---|---|---|
committer | Winson Chung <winsonc@google.com> | 2017-10-23 23:17:57 +0000 |
commit | 5d339f001b17ea4dbfd9a50b15161ab9b90585cb (patch) | |
tree | 68555d5b845b7ddc382811b9238660ab8f73227b /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | 95111379d51ee9542254cf79bdfc6c70224b0d73 (diff) |
Prevent restoring task when updating task
Cherry-pick from: Ie501add4b72a63be0b8514136f10a09fbdd0c6c3
Symptom: App activity shown between launcher & wallpaper.
RootCause:
Some AM public Apis (getTaskInfo(), setExcluteFromRecent()) will calling
AM.anyTaskForIdLocked with MATCH_TASK_IN_STACKS_OR_RECENT_TASKS_AND_RESTORE
parameter to get task record & add task into stack bottom,
that will affect wm side also create task & bring task stack to bottom
due to task.createWindowContainer() in restoreRecentTaskLocked().
Solution:
using MATCH_TASK_IN_STACKS_OR_RECENT_TASKS to get task record without
restore record into stack.
Bug: 67634904
Test: As below issue described sample app flows. b/68038609
Change-Id: I8241c0956a3323a70e754c794dd562540ff4eaf4
Signed-off-by: Winson Chung <winsonc@google.com>
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions