Skip to content

Commit 4cabbef

Browse files
Christopher TateAndroid (Google) Code Review
authored andcommitted
Merge "Make sure to stop noHistory="true" activities properly" into jb-dev
2 parents 36eeb6a + 5007ddd commit 4cabbef

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

services/java/com/android/server/am/ActivityStack.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3282,7 +3282,9 @@ private final void stopActivityLocked(ActivityRecord r) {
32823282
requestFinishActivityLocked(r.appToken, Activity.RESULT_CANCELED, null,
32833283
"no-history");
32843284
}
3285-
} else if (r.app != null && r.app.thread != null) {
3285+
}
3286+
3287+
if (r.app != null && r.app.thread != null) {
32863288
if (mMainStack) {
32873289
if (mService.mFocusedActivity == r) {
32883290
mService.setFocusedActivityLocked(topRunningActivityLocked(null));

0 commit comments

Comments
 (0)