Merge "[RESTRICT AUTOMERGE] Do not resume activity if behind a translucent task" into qt-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
88bdf80af8
@@ -2145,7 +2145,9 @@ class ActivityStack extends ConfigurationContainer {
|
|||||||
boolean aboveTop = top != null;
|
boolean aboveTop = top != null;
|
||||||
final boolean stackShouldBeVisible = shouldBeVisible(starting);
|
final boolean stackShouldBeVisible = shouldBeVisible(starting);
|
||||||
boolean behindFullscreenActivity = !stackShouldBeVisible;
|
boolean behindFullscreenActivity = !stackShouldBeVisible;
|
||||||
boolean resumeNextActivity = isFocusable() && isInStackLocked(starting) == null;
|
boolean resumeNextActivity = isFocusable()
|
||||||
|
&& getVisibility(starting) == STACK_VISIBILITY_VISIBLE
|
||||||
|
&& isInStackLocked(starting) == null;
|
||||||
for (int taskNdx = mTaskHistory.size() - 1; taskNdx >= 0; --taskNdx) {
|
for (int taskNdx = mTaskHistory.size() - 1; taskNdx >= 0; --taskNdx) {
|
||||||
final TaskRecord task = mTaskHistory.get(taskNdx);
|
final TaskRecord task = mTaskHistory.get(taskNdx);
|
||||||
final ArrayList<ActivityRecord> activities = task.mActivities;
|
final ArrayList<ActivityRecord> activities = task.mActivities;
|
||||||
|
|||||||
Reference in New Issue
Block a user