Skip to content
Commit 173ae780 authored by Charles Chen's avatar Charles Chen
Browse files

Enable show error dialogs on the secondary display

There are four kinds of error dialogs showing on devices. We'll take different approaches on them:

1. AppErrorDialog: show on displays with app crashed windows. If none, show on the last used display.
2. AppAnrDialog: show on displays with ANR windows. If none, show on the last used display.
   For background ANR(if users enable it), show on the last used display.
3. StrictModeViolationDialog: show on displays with violated app located.
   If none, show on the last used display.
4. DebugWaitingDialog: show on the last used display.

Also introduce ErrorDialogController to consolidate error dialog logic
in ProcessRecord and use another variable for StrictModeViolationDialog.

fixes 117877476
Test: atest ProcessRecordTests AppErrorDialogTest
Test: atest AmStartOptionsTests#testDashD

Change-Id: Iddd3a2ce0d1037a9a294ce6cb51f181f998cd42e
parent 247901bb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment