In examples imageviewer,When showPopUpMessage is called repeatedly in a short time, Toast will never show
Describe the bug In examples imageviewer When showPopUpMessage is called repeatedly in a short time, Toast will never show.
Affected platforms Select one of the platforms below:
- Desktop
Versions
- Kotlin version*: 1.6
- Compose Multiplatform version*: 1.1.1
- OS version(s)*: Windows 11 22H2
- OS architecture: arm64
- JDK (for desktop issues): JDK11
To Reproduce Steps and/or the code snippet to reproduce the behavior:
- click dots button in any miniature image
- then click dots button in another miniature,fast
- then the Toast will never show when you click again and again
Additional context
the bug may cause by Toast.kt
code:
if (isShown) { return }

video
https://user-images.githubusercontent.com/37413956/226234664-8cdcdd61-6213-40dd-a384-978012a5078a.mp4
Could you add a short snippet reproducing the issue?
OK,I have add a video reproducing the issue
Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.