Android-AppMsg
Android-AppMsg copied to clipboard
cancelAll keeps messages displayed forever
Tried cancelAll, but it keeps messages up forever. Didn't look into this, but give it a try.
I am also having this problem. The AppMsg is not dismissing after calling AppMsg.cancelAll(). It is persisting despite being set to duration of SHORT.
The problem is still there (there is no new update). This bug could be reproduced If you are starting and activity for result while showing this toast and go back to the main activity.
A workaround which is working for me is "waiting a little bit" before launching the activity and cancel the toast:
AppMsg.cancelAll();
android.os.Handler handler = new android.os.Handler();
handler.postDelayed(new Runnable() {
@Override
public void run() {
// Start your activity for result here
}
}, 200);
It's totally an ugly solution but hope helps someone. Cheers