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

Weird issue with the lock #5

Open
NeoDigi opened this issue Sep 14, 2017 · 1 comment
Open

Weird issue with the lock #5

NeoDigi opened this issue Sep 14, 2017 · 1 comment
Labels

Comments

@NeoDigi
Copy link

NeoDigi commented Sep 14, 2017

There is still one weird issue left:
When you first start the app, if you push anywhere on the app except on the edit Text or the switch screen textview) there is a weird animation happening that will only happen once (try to click on the background or on the LOG IN button before clicking anything else)

I think the because the lock is initially at false.
I tried to debug it, but I still don't understand how the lock value is false only when you click the caption and try when you click anything else (I've put a breakpoint on any value change on the lock, and I still don't understand how it's changing its value without hitting that breakpoint)

@luckyzhangx
Copy link

when unfold() is called, lock would be set true. However, when you launch app, unfold is not called in the onCreateView. As a result, when touch somewhere outside of textViews, LogInFragment's unfold() will be called, which will call SignUpFragment's fold(), which will do the weird fold animation.

put lock = true; in the onViewCreated() of LogInFragment will solve this problem.

@vpaliy vpaliy added the bug label Jul 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants