0
0
mirror of https://github.com/ankidroid/Anki-Android.git synced 2024-09-20 20:03:05 +02:00
Commit Graph

11810 Commits

Author SHA1 Message Date
David Allison
46075e2ccc Add Card Info to Reviewer
Hidden by default
2020-10-28 11:56:29 -05:00
David Allison
5125fdfb63 Fix app bar button "reset to default" 2020-10-28 11:56:29 -05:00
dependabot-preview[bot]
dc3911bff0 Bump constraintlayout from 2.0.2 to 2.0.3
Bumps constraintlayout from 2.0.2 to 2.0.3.

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-10-28 11:53:42 -05:00
dependabot-preview[bot]
3a8c3f88b7 Bump mockito-inline from 3.5.15 to 3.6.0
Bumps [mockito-inline](https://github.com/mockito/mockito) from 3.5.15 to 3.6.0.
- [Release notes](https://github.com/mockito/mockito/releases)
- [Commits](https://github.com/mockito/mockito/compare/v3.5.15...v3.6.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-10-28 11:53:42 -05:00
dependabot-preview[bot]
3ca60016f2 Bump mockito-inline from 3.5.13 to 3.5.15
Bumps [mockito-inline](https://github.com/mockito/mockito) from 3.5.13 to 3.5.15.
- [Release notes](https://github.com/mockito/mockito/releases)
- [Commits](https://github.com/mockito/mockito/compare/v3.5.13...v3.5.15)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-10-28 11:53:42 -05:00
dependabot-preview[bot]
9983189276 Bump exifinterface from 1.3.0 to 1.3.1
Bumps exifinterface from 1.3.0 to 1.3.1.

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-10-28 11:53:42 -05:00
David Allison
1b60577197 Note Editor: Default to centered buttons
< API 21 does not perform the code to dynamically reposition
as buttons cannot be added

All reasonable screen sizes will look better with these buttons centered
2020-10-28 10:06:45 -05:00
David Allison
24533b2faa Note Editor: Allow Cloze Deletion in all APIs
Had fixed this functionality to work before Lollipop, but got the conditional
in the incorrect place.
2020-10-28 10:06:45 -05:00
Arthur Milchior
62ee0b0c64 NF: improve typing by stating recursiveness explicitly 2020-10-28 10:03:19 -05:00
Arthur Milchior
ce66822cf6 NF: nullabe mayberandomizeDeck 2020-10-28 13:55:26 +00:00
Mike Hardy
cee205114a Bumped version to 2.14alpha25
@branch-specific
2020-10-27 23:29:28 +00:00
Mike Hardy
52f370d35d
Bump to 2.14alpha24
Manual commit because release troubleshooting botched release process commits
2020-10-27 18:00:33 -05:00
Mike Hardy
0b0c1e936d
Revert "Bump gradle from 4.0.2 to 4.1.0"
This reverts commit 3dbe42687c.
2020-10-27 17:59:43 -05:00
Mike Hardy
a4fed8afe8
Revert "Bump com.github.triplet.play from 2.8.0 to 3.0.0"
This reverts commit ba207318e7.
2020-10-27 17:21:18 -05:00
Mike Hardy
ff7d11a317
Revert "Adjust Play store publishing property setting to plugin v3 style"
This reverts commit 85ff3b8ca9.
2020-10-27 17:19:59 -05:00
AnkiDroid Translations
a84bee6e50 Updated strings from Crowdin 2020-10-27 20:34:55 +00:00
David Allison
5205c62a42 NoteEditor: Expand/Collapse Field Content
Includes animation, requested on Reddit - seemed sensible
2020-10-27 14:29:15 -05:00
David Allison
e5e9bf5505 Add sleep for: validEncodingSetsAnswerCorrectly
Hopefully fixes 7527
2020-10-27 14:10:52 -05:00
David Allison
800640572b Editor Toolbar: Allow Custom Buttons
This is API 21+ due to an issue with VectorDrawableCompat.

* Due to problems with the horizontal scroll view, we change to GRAVITY_LEFT
when there are more items than will fit on the screen, this uses a hardcoded
value of 32dp

An item can be long-pressed to remove

We generate the bitmaps ourselves, but deletion will change "1" from what
was the first item to the second item.

Related 7124
2020-10-27 13:54:26 -05:00
David Allison
d335596fae Note Editor: Remove Hacks for Cloze Deletions
Now we have a toolbar, we no longer need the copy/paste hack
or the item in the attachment menu

Related: 6494
Reverts: 7126
Reverts: 6497
2020-10-27 13:54:26 -05:00
David Allison
38e354bc1d Editor Toolbar: Add Cloze
Note that VectorDrawableCompat does not work under API 16

Therefore we add a few hacks into the Toolbar class instead of using insertItem, which is a shame
2020-10-27 13:54:26 -05:00
David Allison
8e6d6e139a Note Editor: Add Formatting Toolbar
Bold, Italic, Underline, Title, Text Size, Horizontal Line, MathJax

Fixes 7124
2020-10-27 13:54:26 -05:00
David Allison
1982245aa2 Help Dialog: Add OpenCollective Donate Link
Separate commit to allow easy revert
2020-10-27 12:07:51 -05:00
David Allison
8af3e4c603 RecursivePictureMenu: Add Breadcrumb header 2020-10-27 12:07:51 -05:00
David Allison
f749972614 Added picture-based help dialog
Designed to both encourage contributors to improve the app, and to
easily display the Anki and AnkiDroid manuals to reduce support load

Remove "Send Feedback" as it's now included in the menu
2020-10-27 12:07:51 -05:00
David Allison
c7793891c4 Converted Images to vector
Useful for new help screen
2020-10-27 12:07:51 -05:00
David Allison
8edb4f8949 Note Editor: Add Clear Field button
Fixes 7522
2020-10-27 11:10:44 -05:00
David Allison
0394b097b0 moveToNonDynamicDeckWorks: Add Sleep to avoid bug
Hopefully fixes 7431
2020-10-27 10:19:10 -05:00
Arthur Milchior
f9e51444a9 NF: duplicate rename 2020-10-26 13:50:49 -05:00
Arthur Milchior
b9706f3b16 Action to check for string ressources 2020-10-26 12:59:15 -05:00
David Allison
8773cf10e2 NF: Extract Change Field Count to FieldState
(cherry picked from commit 59503f0e15)
2020-10-26 11:14:34 -05:00
David Allison
07b844ccc6 NF: Extract Sticky Fields to FieldState
(cherry picked from commit 7b266c3c53)
2020-10-26 11:14:34 -05:00
David Allison
a3f0cc796d NoteEditor: Handle onSaveInstanceState in Views
This removes logic from NoteEditor to handle this case

(cherry picked from commit c8e375c2d0)
2020-10-26 11:14:34 -05:00
David Allison
5df0bb353e NF: FieldEditText - remove mName
Now used - handled by FieldEditLine

(cherry picked from commit 44eab71980)
2020-10-26 11:14:34 -05:00
David Allison
ae143c3939 NF: Extract fields[][] to FieldState
This will allow us to later abstract out the restoration of FieldLines

(cherry picked from commit 3877a36c25)
2020-10-26 11:14:34 -05:00
David Allison
c065cd8f35 NF: Extract getFieldEditLines
(cherry picked from commit 16b4265a03)
2020-10-26 11:14:34 -05:00
Arthur Milchior
fcea887cec NF: simplify a query 2020-10-26 11:11:49 -05:00
Arthur Milchior
c8c9d22450
NF: comment duplicate "Lapses" ressource (#7498) 2020-10-26 11:09:34 -05:00
Arthur Milchior
946b49f500 NF: remove duplicate error 2020-10-26 11:08:37 -05:00
Arthur Milchior
64c3e75eb0 NF: _syncTemplates avoid 2020-10-26 11:05:32 -05:00
Arthur Milchior
2ef2a9a984 NF: array to scalar when array is never used 2020-10-26 11:05:32 -05:00
Arthur Milchior
61950d7135 NF: registerNotes takes Collection 2020-10-26 11:05:32 -05:00
Arthur Milchior
419d8a6b90 NF: genCard avoid an array 2020-10-26 11:05:32 -05:00
Arthur Milchior
a4217dfeb5 NF: genCard accept singleton 2020-10-26 11:05:32 -05:00
Arthur Milchior
fbfc55419c NF: split updateFieldCache 2020-10-26 11:05:32 -05:00
Arthur Milchior
6195d7d906 NF: genCards takes joined fields 2020-10-26 11:05:32 -05:00
Arthur Milchior
5bd5519d61 NF: remove a loop executed exactly once 2020-10-26 11:05:32 -05:00
Arthur Milchior
9c0f6261f2 NF: _changeNotes takes a single nid 2020-10-26 11:05:32 -05:00
Arthur Milchior
68efa1ac54 NF: _changeCard takes a single nid 2020-10-26 11:05:32 -05:00
Arthur Milchior
83cd741565 NF: remove array with a single element 2020-10-26 11:05:32 -05:00