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
This commit is contained in:
Jing Ji
2022-01-07 01:49:10 -08:00
parent a0357d7b2e
commit 7a645a5f03

View File

@@ -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);