-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Issue4987/previewer issues #4988
Issue4987/previewer issues #4988
Conversation
AnkiDroid/src/main/java/com/ichi2/anki/AbstractFlashcardViewer.java
Outdated
Show resolved
Hide resolved
displayCardQuestion(); | ||
} | ||
else { |
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.
Can you please fix the style file? It should be } else {
, I think this is the third time I mentioned this :p
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.
Ah sorry! And every time I was thinking "yeah, we do elses on new lines", completely missing that you were telling me the opposite. So yes, I'm persistently generating it wrong. Will fix
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.
In Codacy, you want to go here: left bar "Code patterns" -> Pick "Checkstyle" -> seek to "RightCurly". I believe the default setting is what you want and what is specified in our code style doc?
Our internal / commited AndroidStudio config already does this, as mentioned above I was somehow thinking preference was opposite so had been line-breaking. 😞
4a1e8a3
to
fff7fd9
Compare
- don't display a back arrow when we first display - while going back, don't skip answer states (back is same as forward now)
- Previously Preview was always available, fixes ankidroid#4987 crash when no cards - Previously if you went to another Activity with an active search, it was forgotten
fff7fd9
to
98047f2
Compare
@timrae I just rebased and re-packaged the commits so they are clean and coherent, but didn't change the logic any after peeling out the threading change. I'd like another alpha soon that fixes both crashes #4987 and #5000 and I did my level best to respond to everything here, so I'm going to wait a day or so to give you a chance to raise your hand in case you object but otherwise merge it |
@timrae we have two crash fixes lined up on master now, I don't know what it's like to operate the release machinery but if you wanted to pull the cord and fire it up to send a new alpha out, I'll run around with the broom and dustpan after to pick up any pieces (fingers crossed there aren't any...) |
Pull Request template
Purpose / Description
3 of the 9 robots google play sent at our last alpha errored in an easy way on the CardBrowser, this fixes that error as well as quite a few CardBrowser/Previewer integration issues
Fixes
Fixes #4987
Approach
How Has This Been Tested?
A ton by hand, and I made another UI unit test. I posted videos on the linked issue demonstrating before and after
if
statements)