Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d7f4972a authored by yzj's avatar yzj Committed by Josh Yang
Browse files

Catch IllegalArgumentException from startActivityFromRecents.

This may happen when the task id doesn't exist.

Bug: 197273843
Test: none
Change-Id: I1900b93bbf091379264f1136d4c67f0b462664a7
parent f7c19ae4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1358,7 +1358,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);
        }
    }