Merge "Fix resumeHomeStackTask can't resume home if activity is finishing."
This commit is contained in:
@@ -511,7 +511,8 @@ public final class ActivityStackSupervisor implements DisplayListener {
|
|||||||
|
|
||||||
mHomeStack.moveHomeStackTaskToTop(homeStackTaskType);
|
mHomeStack.moveHomeStackTaskToTop(homeStackTaskType);
|
||||||
ActivityRecord r = getHomeActivity();
|
ActivityRecord r = getHomeActivity();
|
||||||
if (r != null) {
|
// Only resume home activity if isn't finishing.
|
||||||
|
if (r != null && !r.finishing) {
|
||||||
mService.setFocusedActivityLocked(r, reason);
|
mService.setFocusedActivityLocked(r, reason);
|
||||||
return resumeTopActivitiesLocked(mHomeStack, prev, null);
|
return resumeTopActivitiesLocked(mHomeStack, prev, null);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user