wordpress-mobile / WordPress-iOS

WordPress for iOS - Official repository
http://ios.wordpress.org/
GNU General Public License v2.0
3.66k stars 1.11k forks source link

App Settings: Multiple toasts appear upon repeated taps #18998

Open mindgraffiti opened 2 years ago

mindgraffiti commented 2 years ago

Expected behavior

Tapping "Clear Spotlight Index" repeatedly should only respond with one toast message that it was successfully cleared.

Tapping "Clear Siri Shortcut Suggestions" repeatedly should only respond with one toast message that it was successfully cleared.

Actual behavior

Jun-14-2022 11-14-13

Steps to reproduce the behavior

  1. Navigate from the profile picture (Me view) > App Settings.
  2. Select "Clear Spotlight Index" or "Clear Siri Shortcut Suggestions" repeatedly.
  3. Notice the toast will present for each tap.
Tested on iPhone 12 Pro, iOS 15.0, WPiOS 19.8
mitaligondaliya commented 2 months ago

Hey @jkmassel @mindgraffiti I've started looking into this issue and conducted some tests to understand the behavior. I observed that the repeated messages are triggered by multiple taps on the clear button. If the clear button is tapped only once, the repeated messages do not appear. This suggests that the current behavior is as expected when the button is tapped repeatedly.

For your reference, I have attached a screen recording demonstrating this behavior.

Please let me know your thoughts on this matter.

https://github.com/wordpress-mobile/WordPress-iOS/assets/29226517/95798d0e-7ab3-4f72-abbe-6a6b222fe2e0