Merge "Fix missing clear identity in AMS.AppTaskImpl#moveToFront"

This commit is contained in:
Clara Bayarri
2016-01-21 17:45:59 +00:00
committed by Android (Google) Code Review

View File

@@ -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