[PaymentHandler] Tapping on scrim not to dismiss sheet
Context: The Bottom-sheet based PaymentHandler UI is based on the bottom-sheet, as its name suggested. For a ChromeActivity's bottom-sheet, when users tap on the scrim, the default behavior is dismissing the sheet. This behavior, however, would increase the avg time for users to finish a transaction, because users may accidentally tap to close the sheet and has to redo the transaction. Old behavior: tapping the scrim of Payment Handler UI dismisses the sheet. Change: Since the sheet dismissal behavior is defined in the onScrimClick method of the BottomSheet's default scrim-observer, we override this method to bypass the dismissal. New behavior: tapping the scrim of Payment Handler UI wouldn't dismiss the sheet. Bug: 1029815 Change-Id: If15ab2c7f293387fbc546c79006b2d2e811d6b38 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1935431Reviewed-by:Matthew Jones <mdjones@chromium.org> Commit-Queue: Liquan (Max) Gu <maxlg@chromium.org> Cr-Commit-Position: refs/heads/master@{#723447}
Showing
Please register or sign in to comment