Tapadoo / Alerter

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

Last alert come before the first alert. #194

Closed samuk190 closed 4 years ago

samuk190 commented 5 years ago

Can please someone explain why this alert doesnt work like NotificationsBanner swift? I mean, if I use two alerts it will not wait the last one dismiss, how I can handle that

samuk190 commented 5 years ago

How can I make it wait for next alert instead of automatically dimissing it?

kpmmmurphy commented 5 years ago

Hi @samuk190,

Unfortunately, this is an implementation choice to ensure only one view is added to the layout hierarchy at a time. You could add some logic to show the following Alert once the current is dismissed.

https://github.com/Tapadoo/Alerter/blob/master/alerter/src/main/java/com/tapadoo/alerter/Alerter.kt#L386