AnkiDroid Translations
ba16ac2124
Updated strings from Crowdin
2021-05-07 15:33:11 -05:00
Mike Hardy
f0f3e34c0c
fix(test): add sleeps to deflake schedule test
2021-05-07 13:21:53 -05:00
David Allison
d14eea9457
fix: crash changing collection when stats running
...
The main problem is that we want stats to stop loading on
destroy(), as it takes a long time and we want users
to be able to open other screens while stats are loading
This means that we only want to stop the task when preferences
are opened, as this can allow people to change the collection path
which closes the collection
This may leave a bug where syncing would also cause a crash
Fixes: 6192
2021-05-07 13:21:53 -05:00
David Allison
a798d21ef9
Statistics: Split AsyncTasks
...
Theoretically both shouldn't need to be executing at the same time
but replacing a potentially running AsyncTask means it can't be
cancelled
2021-05-07 13:21:53 -05:00
David Allison
c2f0f48762
fix: use new stats instance on collection change
...
Introduced in 4809c77a44
Related: 6192 - not the cause, but a fix fails
2021-05-07 13:21:53 -05:00
David Allison
1823d8bfc4
Design: Use Monospace on card template editor
2021-05-07 12:31:04 -05:00
David Allison
fee8cee98d
Design: Add default text for template editor
2021-05-07 12:31:04 -05:00
David Allison
c1602e26f8
CardTemplateEditor: Remove contentDescription
...
This was advised against by the accessibility scanner as some
apps will read the description rather than the text
2021-05-07 12:31:04 -05:00
David Allison
5a9f8fac1f
Speed up card browser
...
No point in using regex when a substring will do
2021-05-04 15:56:52 -05:00
Mike Hardy
013d069bd8
Bumped version to 2.15alpha49
...
@branch-specific
2021-05-04 19:21:57 +00:00
AnkiDroid Translations
5de18926ba
Updated strings from Crowdin
2021-05-04 14:11:20 -05:00
David Allison
3195b3aa62
new collection: use new timezone code
...
Now we upgrade to schedv2, we should also use the new timezone code
Related: 8162
2021-05-04 13:20:29 -05:00
David Allison
79163e4b57
fix: obtain "newTimezoneHandling" from collection
...
Previously setting was persisted, but not displayed
2021-05-04 13:20:29 -05:00
David Allison
28627e3ff3
Set default sched version to v2
...
Related: 8162
2021-05-04 13:20:29 -05:00
David Allison
47b399eb46
Remove "experimental" from SchedV2
2021-05-04 13:20:29 -05:00
Akshay Vilas Jadhav
e161fdc54b
Add Tests for Card Template Editor BottomNavigationView ( #8772 )
...
* Added Test for checking bottom navigation view
* Fixed Bug : Removed Strings CSS,Front And Back
2021-05-04 12:55:40 -05:00
Akshay Vilas Jadhav
aa1c651218
Card Browser, NoteEditor And Statistics : Improve "Search Deck" UX ( #8644 )
...
* Used DeckSelectionDialog class to implement search deck dialog In CardBrowser ,Statistics And NoteEditor.
* Fixed Test and Added ALL_DECKS in card browser and statistics
* show lastSelectedDeck in statistics
* added special case for All_Deck in compareTo
2021-05-04 12:50:02 -05:00
Arthur Milchior
f8894fcb7b
NF: more removal of ResultListener
2021-05-03 16:03:04 -05:00
Arthur Milchior
0711bcde77
NF: remove ResultListener type from Task
2021-05-03 16:03:04 -05:00
Arthur Milchior
5ded9ba206
NF: remove some more ProgressListener
2021-05-03 16:03:04 -05:00
Arthur Milchior
e5f0dabb29
NF: remove ProgressListener type from Task
2021-05-03 16:03:04 -05:00
Tarekk Mohamed Abdalla
388b8e7e8e
test: regression #8762
2021-05-03 15:06:11 -05:00
Tarekk Mohamed Abdalla
2747213b68
fix: added tag doesn't reflect in adapter
2021-05-03 15:06:11 -05:00
David Allison
433822b428
fix: no custom study steps on schedv2
...
These options are no longer applicable for SchedV2
Had problems with getPreferenceScreen().removePreference
so went with assigning a key to the category and using that
The methods fail on nulls, so null checking is sadly necessary
Fixes 8641
2021-05-03 12:05:16 -05:00
Arthur Milchior
fabf28a937
NF: Allow to execute task and listener without manager
...
I realized for a test that it may be easier to get to execute a task against a listener without involving the whole
manager process. This ensure this feature will be available to any tester when needed even if I don't use it know
2021-05-03 09:51:08 -05:00
David Allison
8e52b22a19
Models/Field Text Dialogs: Display Keyboard on open
...
UX - saves the user tapping on the dialog
2021-05-03 09:49:45 -05:00
David Allison
c96a32bd51
Text Dialogs: Display Keyboard on open
...
UX - saves the user tapping on the dialog
2021-05-03 09:49:45 -05:00
David Allison
509a966d15
MaterialEditTextDialog: works on .build()
...
.show() calls .build() so this still works on show
2021-05-03 09:49:45 -05:00
Arthur Milchior
c61103db78
NF: add some NonNull for notes
2021-05-02 15:16:42 -05:00
Akshay Vilas Jadhav
64fa0058ee
Split Card Template Editor UI into front/css/back fragments ( #8730 )
...
* Improved Card Template Editor UI
* Implemented Bottom navigation bar with svgs images
* fixed night mode issue
* fixed lint error
2021-05-02 15:13:23 -05:00
Akshay Vilas Jadhav
425701eb65
WhiteBoard : Improve UX - color, width, ( #8715 )
...
* Implemented Change Stroke Width Feature
* extracted strokeWidth Code to separate class
* extracted (width|height|margin) from whiteboard editor xml to style
renamed reviewer_whiteboard_pen_color to reviewer_whiteboard_editor
* renamed title_whiteboard_editor
2021-05-01 16:33:55 -05:00
Tarekk Mohamed Abdalla
bf823aa67c
test: testAttachToFragmentManager
2021-05-01 16:14:59 -05:00
Arthur Milchior
4fe6635b27
NF: add requireAnOpenCollection
to Task
...
Checking whether it's one specific class do not seems very elegant.
As almost everything require an open collection, default to true. The only exception is when the task manipulate the
collection as a whole.
I do not want to use a member, because I wish to eventually transform it into an interface in order to use lambda
2021-05-01 16:13:53 -05:00
Mike Hardy
7628151868
Bumped version to 2.15alpha48
...
@branch-specific
2021-05-01 15:40:38 +00:00
AnkiDroid Translations
9a55e7189a
Updated strings from Crowdin
2021-05-01 09:58:24 -05:00
Arthur Milchior
df129fa012
NF: remove mDismissCardHandler
...
It was used in a single place, not always needed to initialize it, and its strange that the same listener may be used
for multiple actions while having a state
2021-05-01 09:57:17 -05:00
David Allison
af4effe718
Downgrade error: Specify required disc space
...
UX: Inform the user of what they need to do to perform a downgrade
Include the amount of space required for the downgrade
Related: 8529
2021-05-01 09:31:48 -05:00
David Allison
348edd43e1
Allow opening V16 collection in Anki 2.15
...
Effectively "downgrade & quit" but implicitly if the collection
is opened
* performs a backup
* fails if the backup fails or we don't have space
* can only downgrade from V16 to V11
Fixes 8529
2021-05-01 09:31:48 -05:00
David Allison
0cfc53fcbe
Test Opening V16 collection
...
Also includes adding asset loading for /test/
This is done via /resources/
2021-05-01 09:31:48 -05:00
David Allison
29f39e3130
NF: Extract method performBackup
2021-05-01 09:31:48 -05:00
David Allison
449b2f1fc1
NF: BackupManager - simplify performBackupInNewThread
...
Remove two redundant parameters
2021-05-01 09:31:48 -05:00
David Allison
0c5dac69ac
Upgrade backend to 0.1.5
...
* Adds "downgrade from schema V16" method
* Allows multiple Cleanup annotations
Prep for 8529
2021-05-01 09:31:48 -05:00
David Allison
c60d6a5542
NF: Add DatabaseVersion return value
...
Prep for adding a case where the database can be downgraded
2021-05-01 09:31:48 -05:00
VINISH
910ed30408
Convert remaining PNG files to SVG where possible ( #8707 )
...
* play arrow
* pause svg
* stop svg
* spinner triangle svg
* widget_add_note svg
* widget_add_note svg
* Replaced PNG with SVG
* Replaced PNG with SVG
* Replaced PNG with SVG
* Widget_add_note
* Suspend dropdown button Svg
* record Svg
* record stop Svg
* eraser svg
* anki logo svg
* flip to back dropdown replaced svg
* flip to back dropdown svg
* stat notify svg
* Update AnkiDroid/src/main/java/com/ichi2/anki/Reviewer.java
Co-authored-by: Mike Hardy <github@mikehardy.net>
2021-05-01 09:14:17 -05:00
Tarekk Mohamed Abdalla
fa1b2fc309
NF: New design for Fragment Result API
2021-05-01 09:12:17 -05:00
Tarekk Mohamed Abdalla
c4564321e6
test: add TagsDialogTest
2021-05-01 09:12:17 -05:00
Tarekk Mohamed Abdalla
c950268d54
test: extract whatever
to its own class
...
`whatever()` is the same as `any()` from Mockito, but with no assertion.
2021-05-01 09:12:17 -05:00
Tarekk Mohamed Abdalla
77b1f74f51
NF: Use Fragment Result API
...
When a dialog wants to show a dialog the best way to communicate between them is through the new Fragment Result API
https://developer.android.com/guide/fragments/communicate#fragment-result
2021-05-01 09:12:17 -05:00
Tarekk Mohamed Abdalla
8954b35fd0
NF: move TagsDialogListener to a new file
2021-05-01 09:12:17 -05:00
Tarekk Mohamed Abdalla
72d6b99651
NF: refactor TagsDialog to use factory
2021-05-01 09:12:17 -05:00