Merge "Fix SafeActivityOptions construction in startActivityFromRecents" into pi-dev

This commit is contained in:
Jorim Jaggi
2018-03-13 15:34:52 +00:00
committed by Android (Google) Code Review

View File

@@ -5401,11 +5401,12 @@ public class ActivityManagerService extends IActivityManager.Stub
final int callingPid = Binder.getCallingPid();
final int callingUid = Binder.getCallingUid();
final SafeActivityOptions safeOptions = SafeActivityOptions.fromBundle(bOptions);
final long origId = Binder.clearCallingIdentity();
try {
synchronized (this) {
return mStackSupervisor.startActivityFromRecents(callingPid, callingUid, taskId,
SafeActivityOptions.fromBundle(bOptions));
safeOptions);
}
} finally {
Binder.restoreCallingIdentity(origId);