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

Commit 4a0b8e8e authored by Yuncheol Heo's avatar Yuncheol Heo
Browse files

Log the trial to start non-current user Activity

It's hard to debug the reason why non-current user's Activity is not
visible. We'd better have the explicit log-message for the case.

Bug: 331137460
Test: atest CtsVirtualDevicesAppLaunchTestCases and check if the log is shown
Change-Id: I423aafd272dff7d4f5b4a4a6a78b613d11785123
parent 1699048d
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -2524,7 +2524,9 @@ class ActivityStarter {
        // If the caller has asked not to resume at this point, we make note
        // of this in the record so that we can skip it when trying to find
        // the top running activity.
        if (!r.showToCurrentUser() || mLaunchTaskBehind) {
        final boolean canShowActivity = r.showToCurrentUser();
        if (!canShowActivity) Slog.w(TAG, "Can't resume non-current user r=" + r);
        if (!canShowActivity || mLaunchTaskBehind) {
            r.delayedResume = true;
            mDoResume = false;
        } else {