Merge "Catch IllegalArgumentException from startActivityFromRecents."

This commit is contained in:
TreeHugger Robot
2021-10-25 20:38:55 +00:00
committed by Android (Google) Code Review

View File

@@ -1357,7 +1357,7 @@ public class PhoneWindowManager implements WindowManagerPolicy {
}
try {
ActivityManager.getService().startActivityFromRecents(targetTask.persistentId, null);
} catch (RemoteException e) {
} catch (RemoteException | IllegalArgumentException e) {
Slog.e(TAG, "Failed to start task " + targetTask.persistentId + " from recents", e);
}
}