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

Action Queue快速点击的时候,会导致ActionQueue的size大于1,然后就不会执行handleAction了 #960

Closed
56858752 opened this issue Aug 14, 2018 · 1 comment · Fixed by #961

Comments

@56858752
Copy link

56858752 commented Aug 14, 2018

`

    mMainHandler.post(new Runnable() {
        @Override
        public void run() {
            enqueueAction(action);
        }
    });

private void enqueueAction(Action action) {
    mQueue.add(action);
    if (mQueue.size() == 1) {
        handleAction();
    }
}

`

如题,这里会出现一个bug,如果快速操作start或者pop等action方法,会导致queue的size大于1,此时handleAction就不会执行了,然后现象就是点击任何选项卡都没反应了。

YoKeyword added a commit that referenced this issue Aug 14, 2018
@YoKeyword YoKeyword mentioned this issue Aug 14, 2018
@YoKeyword
Copy link
Owner

v1.3.6 试试 :)

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

Successfully merging a pull request may close this issue.

2 participants