Skip to content
Commit abb433b3 authored by Winson Chung's avatar Winson Chung
Browse files

Remove task activities from LRU list when task is reparented.

- When a task is reparented, the activities are not removed from the
  previous stack's LRU list.  Afterwards, when the activity is destroyed,
  the previous stack's LRU list will contain an activity that has no
  task.  Instead, we should remove all of the task's activities from the
  LRU list when it is removed, and update the LRU list of the new stack
  when the top activity is next resumed.
- Also fixing issue with stack header in dumpsys not printing if there are
  no activities (but other states were still being printed for that stack)

Bug: 36253246
Test: adb shell dumpsys activity activities
Change-Id: Ia14f170dceff9eadc48d1ac4aac2f16c714adde2
parent adb9fcde
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment