Merge "Resume home activity can skip resume and cause ANR. DO NOT MERGE" into lmp-mr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
c79a8ea0c4
@@ -1525,14 +1525,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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user