Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9ba23db5 authored by Craig Mautner's avatar Craig Mautner Committed by android-build-merger
Browse files

Merge "[ActivityManager] No home activity resumed and cause key dispatch ANR"...

Merge "[ActivityManager] No home activity resumed and cause key dispatch ANR" automerge: 247e828b automerge: ad55787d
automerge: 7748fd81

* commit '7748fd81':
  [ActivityManager] No home activity resumed and cause key dispatch ANR
parents d7211ef8 7748fd81
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -1526,14 +1526,14 @@ final class ActivityStack {
                // Now the task above it has to return to the home task instead.
                final int taskNdx = mTaskHistory.indexOf(prevTask) + 1;
                mTaskHistory.get(taskNdx).setTaskToReturnTo(HOME_ACTIVITY_TYPE);
            } else {
                if (DEBUG_STATES && isOnHomeDisplay()) Slog.d(TAG,
            } else if (!isOnHomeDisplay()) {
                return false;
            } else if (!isHomeStack()){
                if (DEBUG_STATES) Slog.d(TAG,
                        "resumeTopActivityLocked: Launching home next");
                // Only resume home if on home display
                final int returnTaskType = prevTask == null || !prevTask.isOverHomeStack() ?
                        HOME_ACTIVITY_TYPE : prevTask.getTaskToReturnTo();
                return isOnHomeDisplay() &&
                        mStackSupervisor.resumeHomeStackTask(returnTaskType, prev);
                return mStackSupervisor.resumeHomeStackTask(returnTaskType, prev);
            }
        }