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

View half-hidden state sometimes happen in VisibilityAnimationManager #55

Open
cdongieux opened this issue Mar 23, 2017 · 2 comments
Open

Comments

@cdongieux
Copy link

There is a little bug in VisibilityAnimationManager:

  • grab the handle => the bubble shows up
  • release the handle
  • grab the handle again at the moment the bubble hide animation starts

Bug => the bubble is in a half-hidden state

To fix this, you have to start the show animation if the hide animation is still running:

    @Override
    public void show() {
        boolean hideIsRunning = hideAnimator.isRunning();
        hideAnimator.cancel();
        if (view.getVisibility() == View.INVISIBLE || hideIsRunning) {
            view.setVisibility(View.VISIBLE);
            updatePivot();
            showAnimator.start();
        }
    }
@hendrawd
Copy link

i have exactly the same problem, this occurs often and easily if we provide the custom animator and set higher duration

@hendrawd
Copy link

Maybe it is related to #19

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

2 participants