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

Commit e7413fc5 authored by Rob Carr's avatar Rob Carr Committed by android-build-merger
Browse files

Merge "Catch exceptions thrown by pending activity launches." into mnc-dr-dev...

Merge "Catch exceptions thrown by pending activity launches." into mnc-dr-dev am: 9ada400e am: 894dd2b0
am: a153a807

* commit 'a153a807':
  Catch exceptions thrown by pending activity launches.
parents fc5c6090 a153a807
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -2468,8 +2468,13 @@ public final class ActivityStackSupervisor implements DisplayListener {
    final void doPendingActivityLaunchesLocked(boolean doResume) {
        while (!mPendingActivityLaunches.isEmpty()) {
            PendingActivityLaunch pal = mPendingActivityLaunches.remove(0);

            try {
                startActivityUncheckedLocked(pal.r, pal.sourceRecord, null, null, pal.startFlags,
                                             doResume && mPendingActivityLaunches.isEmpty(), null, null);
            } catch (Exception e) {
                Slog.w(TAG, "Exception during pending activity launch pal=" + pal, e);
            }
        }
    }