Tapadoo / Alerter

An Android Alerting Library
MIT License
5.52k stars 633 forks source link

alerter hide not working when called in new activity #276

Closed fukemy closed 2 years ago

fukemy commented 2 years ago

hi, i have alerter.show in current activity -> then i start newactivity then called hide in this activity, but it's working, did u provide way to hide all alert from one line of code? Thanks

kpmmmurphy commented 2 years ago

The Alert is tied to the current Activity's DecorView, so you'll have to dismiss the Alert before showing the new Activity. Perhaps using the on dismiss listener would help.

fukemy commented 2 years ago

@kpmmmurphy pls guide me how to use the on dismiss listener, thanks

kpmmmurphy commented 2 years ago

https://github.com/Tapadoo/Alerter#visibility-callbacks