Loading services/java/com/android/server/am/ActivityManagerService.java +11 −2 Original line number Original line Diff line number Diff line Loading @@ -4078,11 +4078,20 @@ public final class ActivityManagerService extends ActivityManagerNative implemen System.identityHashCode(r), System.identityHashCode(r), r.task.taskId, r.shortComponentName, reason); r.task.taskId, r.shortComponentName, reason); r.task.numActivities--; r.task.numActivities--; if (r.frontOfTask && index < (mHistory.size()-1)) { if (index < (mHistory.size()-1)) { HistoryRecord next = (HistoryRecord)mHistory.get(index+1); HistoryRecord next = (HistoryRecord)mHistory.get(index+1); if (next.task == r.task) { if (next.task == r.task) { if (r.frontOfTask) { // The next activity is now the front of the task. next.frontOfTask = true; next.frontOfTask = true; } } if ((r.intent.getFlags()&Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET) != 0) { // If the caller asked that this activity (and all above it) // be cleared when the task is reset, don't lose that information, // but propagate it up to the next activity. next.intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET); } } } } r.pauseKeyDispatchingLocked(); r.pauseKeyDispatchingLocked(); Loading Loading
services/java/com/android/server/am/ActivityManagerService.java +11 −2 Original line number Original line Diff line number Diff line Loading @@ -4078,11 +4078,20 @@ public final class ActivityManagerService extends ActivityManagerNative implemen System.identityHashCode(r), System.identityHashCode(r), r.task.taskId, r.shortComponentName, reason); r.task.taskId, r.shortComponentName, reason); r.task.numActivities--; r.task.numActivities--; if (r.frontOfTask && index < (mHistory.size()-1)) { if (index < (mHistory.size()-1)) { HistoryRecord next = (HistoryRecord)mHistory.get(index+1); HistoryRecord next = (HistoryRecord)mHistory.get(index+1); if (next.task == r.task) { if (next.task == r.task) { if (r.frontOfTask) { // The next activity is now the front of the task. next.frontOfTask = true; next.frontOfTask = true; } } if ((r.intent.getFlags()&Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET) != 0) { // If the caller asked that this activity (and all above it) // be cleared when the task is reset, don't lose that information, // but propagate it up to the next activity. next.intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET); } } } } r.pauseKeyDispatchingLocked(); r.pauseKeyDispatchingLocked(); Loading