Merge "Fix SafeActivityOptions construction in startActivityFromRecents" into pi-dev
This commit is contained in:
@@ -5401,11 +5401,12 @@ public class ActivityManagerService extends IActivityManager.Stub
|
|||||||
|
|
||||||
final int callingPid = Binder.getCallingPid();
|
final int callingPid = Binder.getCallingPid();
|
||||||
final int callingUid = Binder.getCallingUid();
|
final int callingUid = Binder.getCallingUid();
|
||||||
|
final SafeActivityOptions safeOptions = SafeActivityOptions.fromBundle(bOptions);
|
||||||
final long origId = Binder.clearCallingIdentity();
|
final long origId = Binder.clearCallingIdentity();
|
||||||
try {
|
try {
|
||||||
synchronized (this) {
|
synchronized (this) {
|
||||||
return mStackSupervisor.startActivityFromRecents(callingPid, callingUid, taskId,
|
return mStackSupervisor.startActivityFromRecents(callingPid, callingUid, taskId,
|
||||||
SafeActivityOptions.fromBundle(bOptions));
|
safeOptions);
|
||||||
}
|
}
|
||||||
} finally {
|
} finally {
|
||||||
Binder.restoreCallingIdentity(origId);
|
Binder.restoreCallingIdentity(origId);
|
||||||
|
|||||||
Reference in New Issue
Block a user