Skip to content
Commit 8bda2189 authored by Riddle Hsu's avatar Riddle Hsu
Browse files

Activity in foreground task should be able to launch activity

Assume a visible task contains 2 activities:
 Activity B, process X (top-visible)
 Activity A, process Y
Though process Y doesn't have visible activity, it shouldn't be
blocked to launch activity because it is in a visible task.

This restores the accidental behavior change in commit 9b7603b5.

Also simplify rankTaskLayers to reduce unnecessary anonymous class
and duplicated states (changed/scheduled).

Bug: 182694325
Test: atest RootWindowContainerTests#testTaskLayerRank
            BackgroundActivityLaunchTest# \
            testActivityNotBlockedFromBgActivityInFgTask
Change-Id: Ia8739967805aa8a43f99ab18840b02ac50380912
parent a7ee1a9a
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