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

Commit 7a645a5f authored by Jing Ji's avatar Jing Ji
Browse files

Retain the ANR report on choosing wait/feedback in the ANR dialog

In case the ANR isn't recovered and it's needed in subsequent ANR
dialog.

Bug: 211879978
Test: Manual - see b/211879978#comment8
Change-Id: I083f04c7bcbf2f38896f7f91ea174a74bc0b3a0d
parent a0357d7b
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -163,7 +163,9 @@ final class AppNotRespondingDialog extends BaseErrorDialog implements View.OnCli

                        synchronized (mService.mProcLock) {
                            errState.setNotResponding(false);
                            errState.setNotRespondingReport(null);
                            // We're not clearing the ANR report here, in case we'd need to report
                            // it again when the ANR dialog shows again.
                            // errState.setNotRespondingReport(null);
                            errState.getDialogController().clearAnrDialogs();
                        }
                        mService.mServices.scheduleServiceTimeoutLocked(app);