Spikeysanju / MotionToast

🌈 A Beautiful Motion Toast Library for Kotlin Android
1.48k stars 130 forks source link

Why On Android version 9 Toast doesn't showing. Please checking #20

Closed Theeranail closed 3 years ago

Theeranail commented 3 years ago

on android 9 doesn't showing but trying on android 7,8,10,11 is no problem

Spikeysanju commented 3 years ago
  1. Kindly re-check if you turned off the notification for your app.
  2. Restart your device & check if it works
Theeranail commented 3 years ago

i try to do follow you. But is doesn't work. device -> Xiaomi Mi 9T Android version 9

david-serrano commented 3 years ago

@Theeranail i found the solution to this, essentially, the issue is that the view was getting re-added unnecessarily on each timer tick, so for whatever toast you're using, if you clone the repository, you can make it work by deleting the toast.show() method inside each onTick callback for the timers in the MotionToast versions you're using. I will try to submit a PR that fixes this soon - this lib is very cool, but could use some improvements for customisations imo 😄

Spikeysanju commented 3 years ago

@david-serrano Thanks, man!. It will be great if you just make PR for this issue 👍

Theeranail commented 3 years ago

Thanks. @Spikeysanju @david-serrano