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
Loading
Please register or sign in to comment