Calculate skip UI and build UI after payment instruments are ready.
This cl cleans up the order in which we calculate whether or not should skip UI, building UI, and showing it on Android. Without this change it is possible that ShouldSkipUI is true but we still show the payment sheet UI. After this change we build the UI and calculate ShouldSkipUI after both of the following conditions are met: 1-request.show is called. 2-All instruments are ready. To properly handle concurrent request.show attempts, both setting and reading "sShowingPaymentRequest" should happen in .show(). Bug: 984694 Change-Id: I7ccae4b1346c5206184217f7c721bcc9db9b3df5 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1877047Reviewed-by:Rouslan Solomakhin <rouslan@chromium.org> Commit-Queue: Sahel Sharify <sahel@chromium.org> Cr-Commit-Position: refs/heads/master@{#711692}
Showing
This diff is collapsed.
Please register or sign in to comment