[AW] DevUI: Improve different webview provider error message
Refactor the PersistentErrorView class into a Text message with an always yellow background and black text with an optional button for a quick action. Use round alert error icon currently in drawable resources instead of the framework triangle white icon, to match the black text color. Refactor WebViewPackageError to show a more informative message with a quick action to: - Change WebView Provider if it's possible. - If WebView provider cannot be changed, then offer to open DevTools from the current provider if it has a valid DevTools implementation. Clicking the message body will still open a dialog to offer a more detailed message and both options to open current WebView provider DevTools if possible or change WebView if possible. Stop showing the different package error dialog at the start of the UI. This will also fix the presubmit warning because of using setTextColor. Fixed: 1059475,1061164,1052192,1062406 Change-Id: I67176896580143e5e962991a36faf0576e156090 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2098689 Commit-Queue: Hazem Ashmawy <hazems@chromium.org> Reviewed-by:Nate Fischer <ntfschr@chromium.org> Cr-Commit-Position: refs/heads/master@{#756115}
Showing
This diff is collapsed.
Please register or sign in to comment