Skip to content
Commit 75cf7679 authored by Louis Chang's avatar Louis Chang
Browse files

Fix NPE when starting activity while no focused task

NexusLauncher was not started when FallbackHome finished itself
because activities was prevented to be resumed while display is
sleeping. So, NPE was thrown while starting an activity because
there was no focused task in the display since FallbackHome
activity was removed from the task and all tasks were also removed.

The activities should still be able to be resumed when calling
resumeTop methods explicitly (even when display is sleeping).

For the original issue of bubble activities, the activities in
secondary display can be prevented from starting by evaluating
keyguard-going-away state for default display only.

Bug: 164572568
Bug: 160338354
Bug: 168424696
Test: atest ActivityStackTests

Change-Id: Ica58b7e8c93e7aa688b335d1ecf7464bc8450e30
Merged-In: Ica58b7e8c93e7aa688b335d1ecf7464bc8450e30
parent 047c1b91
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