Work around BadTokenException in PaymentRequest UI's DimmingDialog
Context: DimmingDialog#show() could throw BadTokenException which is an Android internal programming error. To work around this issue, DimmingDialog#show() catch this exception and uses its return to indicate the failure to PaymentUiService. When the failure happens, close the PaymentRequest and report the error to the user. Bug: 1139441 Change-Id: Ia2a23b61b249c25d068e201be0a41b1d57ebf249 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2484043Reviewed-by:Sahel Sharify <sahel@chromium.org> Commit-Queue: Liquan (Max) Gu <maxlg@chromium.org> Cr-Commit-Position: refs/heads/master@{#819042}
Showing
Please register or sign in to comment