Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ff21279e authored by Wale Ogunwale's avatar Wale Ogunwale Committed by Android (Google) Code Review
Browse files

Merge "Fixed issue with not finding existing activity for background user" into mnc-dev

parents 2ba3fec6 25073dd4
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -617,12 +617,9 @@ final class ActivityStack {
            for (int activityNdx = activities.size() - 1; activityNdx >= 0; --activityNdx) {
                ActivityRecord r = activities.get(activityNdx);
                if (notCurrentUserTask && (r.info.flags & FLAG_SHOW_FOR_ALL_USERS) == 0) {
                    return null;
                    continue;
                }
                if (!r.finishing && r.intent.getComponent().equals(cls) && r.userId == userId) {
                    //Slog.i(TAG, "Found matching class!");
                    //dump();
                    //Slog.i(TAG, "For Intent " + intent + " bringing to top: " + r.intent);
                    return r;
                }
            }