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

Commit dd854708 authored by louis_chang's avatar louis_chang Committed by Steve Kondik
Browse files

[ActivityManager] Use the original activity to launch

from Recents

Symptom: Unable to launch activity from Recents because
the activity is not exported. This issue also reported in
https://code.google.com/p/android/issues/detail?id=82185

Solution: Use the original activity to launch

Change-Id: I56822c75f3cb6adbb1910ca53cbc0f18c7f7de5b
parent 9b06ac92
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -4282,6 +4282,9 @@ public final class ActivityManagerService extends ActivityManagerNative
            callingUid = task.mCallingUid;
            callingPackage = task.mCallingPackage;
            intent = task.intent;
            if (task.origActivity != null) {
                intent.setComponent(task.origActivity);
            }
            intent.addFlags(Intent.FLAG_ACTIVITY_LAUNCHED_FROM_HISTORY);
            userId = task.userId;
        }