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

Bugs in demo #194

Closed
MFlisar opened this issue Mar 20, 2017 · 11 comments
Closed

Bugs in demo #194

MFlisar opened this issue Mar 20, 2017 · 11 comments
Assignees
Labels
Milestone

Comments

@MFlisar
Copy link
Contributor

MFlisar commented Mar 20, 2017

  1. when you scroll to any position != 0 and rotate the device, the function finishIfNeeded will close the activity
  2. if I disable this behaviour and go to the permissions page and rotate the device, then I can swipe to the next page (without animation though)

Those bugs are not happening with the play store version, but with the on from the repo's master...

In my clone I added a function to disable the finishIfNeeded check before adding slides and enable them again afterwards, which solves 1, but the second thing still happens, I don't know yet why though...

@janheinrichmerker
Copy link
Owner

Alright the first thing is solved.

@janheinrichmerker
Copy link
Owner

The second thing has something to do with the SwipeBlockableViewPager. I'm investigating this.

@janheinrichmerker
Copy link
Owner

Solved the second issue.

@shruti-ahuja
Copy link

Facing the same issue. When can we get the fixed version?

@janheinrichmerker
Copy link
Owner

Today

@MFlisar
Copy link
Contributor Author

MFlisar commented Mar 21, 2017

Tried it, can confirm it's working basically...

I still see 2 problems:

  • I start reading data from the internal storage in onPageSelected (one page after the permissions slide) and it happens, that the ViewPager does call this function after rotation shortly and trying to swipe => can't reproduce that now and it's simply solveable for me with checking the permissions again in the callback
  • rotate device on the page with the permission, press back, there's a visual glitch, the ViewPager does scroll one page forward and then to the previous one

@MFlisar
Copy link
Contributor Author

MFlisar commented Mar 21, 2017

Saw another thing after trying around 50 times or so, it happened, that I could swipe over the permissions slide without granting the permission... Only once though in all this "tests"... Point one seems to be this issue...

I will solve that by forcefully scrolling back if the permission is not granted in onPageSelected for now to make sure, that this does not have any influence on my app...

@janheinrichmerker
Copy link
Owner

Does the glitch happen even in the latest commit?

@MFlisar
Copy link
Contributor Author

MFlisar commented Mar 21, 2017

I'll check, you just changed the layouts...

@MFlisar
Copy link
Contributor Author

MFlisar commented Mar 21, 2017

PS: It does not fit in here, but I would rethink the last change... You force people now to include ConstraintLayout and DataBinding to their projects for very simple slide layouts...

And the glitch happens in the last commits demo app as well... Just swipe to the permission slide, rotate the phone and press the hardware back button and you'll see it

@shruti-ahuja
Copy link

Why are you forcing us to include ConstraintLayout and DataBinding ...

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