Android-AppMsg icon indicating copy to clipboard operation
Android-AppMsg copied to clipboard

cancelAll keeps messages displayed forever

Open sgehrman opened this issue 10 years ago • 2 comments

Tried cancelAll, but it keeps messages up forever. Didn't look into this, but give it a try.

sgehrman avatar Feb 10 '14 22:02 sgehrman

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.

ericlokness avatar Sep 02 '14 12:09 ericlokness

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

marcohc avatar Apr 26 '15 10:04 marcohc