Skip to content

Commit ff21279

Browse files
ogunwaleAndroid (Google) Code Review
authored andcommitted
Merge "Fixed issue with not finding existing activity for background user" into mnc-dev
2 parents 2ba3fec + 25073dd commit ff21279

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -617,12 +617,9 @@ ActivityRecord findActivityLocked(Intent intent, ActivityInfo info) {
617617
for (int activityNdx = activities.size() - 1; activityNdx >= 0; --activityNdx) {
618618
ActivityRecord r = activities.get(activityNdx);
619619
if (notCurrentUserTask && (r.info.flags & FLAG_SHOW_FOR_ALL_USERS) == 0) {
620-
return null;
620+
continue;
621621
}
622622
if (!r.finishing && r.intent.getComponent().equals(cls) && r.userId == userId) {
623-
//Slog.i(TAG, "Found matching class!");
624-
//dump();
625-
//Slog.i(TAG, "For Intent " + intent + " bringing to top: " + r.intent);
626623
return r;
627624
}
628625
}

0 commit comments

Comments
 (0)