Merge "Don't move-to-front overlays for unresumed tasks"
This commit is contained in:
@@ -1238,7 +1238,7 @@ class ActivityStarter {
|
||||
r.mTaskOverlay = true;
|
||||
final TaskRecord task = mSupervisor.anyTaskForIdLocked(mOptions.getLaunchTaskId());
|
||||
final ActivityRecord top = task != null ? task.getTopActivity() : null;
|
||||
if (top != null && !top.visible) {
|
||||
if (top != null && top.state != RESUMED) {
|
||||
|
||||
// The caller specifies that we'd like to be avoided to be moved to the front, so be
|
||||
// it!
|
||||
|
||||
Reference in New Issue
Block a user