Merge "Catch exceptions thrown by pending activity launches." into mnc-dr-dev
This commit is contained in:
@@ -2467,8 +2467,13 @@ public final class ActivityStackSupervisor implements DisplayListener {
|
|||||||
final void doPendingActivityLaunchesLocked(boolean doResume) {
|
final void doPendingActivityLaunchesLocked(boolean doResume) {
|
||||||
while (!mPendingActivityLaunches.isEmpty()) {
|
while (!mPendingActivityLaunches.isEmpty()) {
|
||||||
PendingActivityLaunch pal = mPendingActivityLaunches.remove(0);
|
PendingActivityLaunch pal = mPendingActivityLaunches.remove(0);
|
||||||
startActivityUncheckedLocked(pal.r, pal.sourceRecord, null, null, pal.startFlags,
|
|
||||||
doResume && mPendingActivityLaunches.isEmpty(), null, null);
|
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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user