Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cancelAll keeps messages displayed forever #20

Open
sgehrman opened this issue Feb 10, 2014 · 2 comments
Open

cancelAll keeps messages displayed forever #20

sgehrman opened this issue Feb 10, 2014 · 2 comments

Comments

@sgehrman
Copy link

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

@ericlokness
Copy link

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.

@marcohc
Copy link

marcohc commented Apr 26, 2015

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants