-
Notifications
You must be signed in to change notification settings - Fork 1.3k
"Skip Tutorial" button moved to parent view so that it does not animate by swipes. #1945
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
Conversation
Now it starts welcome screen after not finishing the pager. Moved "Skip Tutorial" button here so it does not animate by swipe.
Putting "Skip Tutorial" button here so that it does not animate by swipes.
Removing the set of "first run " flag from here. we set it after the buttons press or on WelcomeActivity's finish()
removing "skip tut" button from here.
Removing "Skip Tutorial" button from here so that it does not animate by swipes.
Removing "Skip Tutorial" button from here so that it does not animate by swipes.
Removing "Skip Tutorial" button from here so that it does not animate by swipes.
the "welcomyesButton" is removed from the child views in pager, so it is optional now.
Codecov Report
@@ Coverage Diff @@
## master #1945 +/- ##
=========================================
+ Coverage 4.36% 5.53% +1.16%
=========================================
Files 211 233 +22
Lines 10643 11582 +939
Branches 954 1075 +121
=========================================
+ Hits 465 641 +176
- Misses 10143 10888 +745
- Partials 35 53 +18
Continue to review full report at Codecov.
|
|
Will test. |
|
Sorry, can't test. Failing builds from PR and master. Will need to figure this out separately. |
|
The PR works well for me but I just noticed that on a fresh install the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR!
Just a couple of comments:
- I'd add a couple of missing JavaDocs - I think it would be useful to explain rationale behind
onBackPressed(would basically be same as comment on L98) andfinishTutorial - Not required for this PR, but it might be an idea to rename the id for the skip button. I believe it used to be a yes/no choice but now as it's just a skip button it should have a name to reflect that.
|
@m-rahimy You've made good changes - are you able to make the changes I've requested? |
|
@domdomegg I think @m-rahimy is away and if the functionality added by the PR is fine, we can probably merge the PR and open separate issues for the comments that you have added. :) |
|
Digging deeper, we also probably want the same behavior on landscape so those layouts need to be updated too. Have added Javadoc, and happy @maskaravivek to merge. |
|
@domdomegg Can you open an issue for landscape mode? |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doing some more testing this crashes the beta version as it looks for the welcomeYesButton in the page layout which doesn't exist, causing a NPE when it tries to set visibility. Will try to fix myself.
|
Will need someone else to merge given that I've worked on this. Tests performed All automated tests pass
Things that work:
|
|
Thanks both @m-rahimy and @domdomegg ! This works as expected. |
Title
"Skip Tutorial" button moved to parent view so that it does not animate by swipes.
Description
I noticed that the button moves by swipes, so I moved it to the parent view.
And I saw that the tutorial is not showing after I started the app again (and I didn't follow the tut, so I needed it again) , I moved the code that says "it is not the first run from now on" to the appropriate activity.
Tests performed
Tested on:
API level 19 : Samsung Grand Prime.
android 8 : Huawei mate 10 lite
Screenshots showing what changed
http://leyth.persiangig.com/github/Screenshot_2018-10-20-19-29-26.png