Merge "Fix missing clear identity in AMS.AppTaskImpl#moveToFront"
This commit is contained in:
committed by
Android (Google) Code Review
commit
27a3888077
@@ -21143,7 +21143,12 @@ public final class ActivityManagerService extends ActivityManagerNative
|
||||
public void moveToFront() {
|
||||
checkCaller();
|
||||
// Will bring task to front if it already has a root activity.
|
||||
startActivityFromRecentsInner(mTaskId, null);
|
||||
final long origId = Binder.clearCallingIdentity();
|
||||
try {
|
||||
startActivityFromRecentsInner(mTaskId, null);
|
||||
} finally {
|
||||
Binder.restoreCallingIdentity(origId);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user