Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bottom sheet dialogs should dismiss instead of hiding when a button i…
…s pressed (#3951) <!-- Note: This checklist is a reminder of our shared engineering expectations. The items in Bold are required If your PR involves UI changes: 1. Upload screenshots or screencasts that illustrate the changes before / after 2. Add them under the UI changes section (feel free to add more columns if needed) If your PR does not involve UI changes, you can remove the **UI changes** section At a minimum, make sure your changes are tested in API 23 and one of the more recent API levels available. --> Task/Issue URL: https://app.asana.com/0/488551667048375/1206077448728301/f ### Description When a button is pressed in the bottom sheet dialogs, ensure we `dismiss()` instead of `hide()` to prevent unintended side-effects depending on what the caller does not (as detailed in the linked task). Sets the dismiss listener to `null` before calling `dismiss()` to ensure we get only one of: - button listener invoked, OR - dismiss listener invoked ### Steps to test this PR - [x] Go to ADS internal settings->Dialogs - [x] ensure the `Action Botton Sheet` works as expected - [x] ensure the `Promo Bottom Sheet` works as expected
- Loading branch information