0
0
mirror of https://github.com/ankidroid/Anki-Android.git synced 2024-09-19 19:42:17 +02:00
Commit Graph

12806 Commits

Author SHA1 Message Date
tda1009
7bb570d131
Fix CardBrowser shows wrong deck
(cherry picked from commit c84cf4b151)
2021-07-19 13:00:09 -05:00
AnkiDroid Translations
4845c885a3
Updated strings from Crowdin
(cherry picked from commit 501656a2ed)
2021-07-19 12:59:41 -05:00
Mike Hardy
58c5bd15e8
Bumped version to 2.15.6
@branch-specific
2021-07-14 11:48:19 -05:00
Akshay
59aa73cfb9
used collectionHelper in CreateDeckDialog
(cherry picked from commit d36a76c025)
2021-07-14 11:41:58 -05:00
Mike Hardy
1493d0cca4
Bumped version to 2.15.5
@branch-specific
2021-07-13 10:36:54 -05:00
Mike Hardy
e98c49118f
Bumped version to 2.15.5beta2
@branch-specific
2021-07-10 11:38:49 -05:00
AnkiDroid Translations
915833b04c
Updated strings from Crowdin
(cherry picked from commit 201079b85e)
2021-07-10 11:19:52 -05:00
David Allison
766a002e86
fix: Allow "no webview" error to display
Previously, we checked for a WebView, showed a dialog,
then showed a second dialog about a corrupt database

This "corrupt database" dialog was caused because a bad WebView
stops AnkiDroidApp from completing, not because the database
was actually corrupt.

Fixes 9226

(cherry picked from commit 0fbf481801)
2021-07-10 11:10:54 -05:00
David Allison
0a854a546c
fix: Don't crash if no WebView
After a bad init, we tested to see the database version

If there was no WebView, AnkiDroidApp hadn't performed an init

This caused a path where `new Db(path)` could be called when the
database wasn't created, using a Java style database init without
handling creating the `col` table

We then crashed as there was no default deck

Related: 9226
(cherry picked from commit 876180e614)
2021-07-10 11:10:53 -05:00
Mike Hardy
4f30c2c2a7
fix(stats): set hourly breakdown stats into 0-23 range by modulus
Fixes #9230

(cherry picked from commit 8269b816dd)
2021-07-10 11:09:48 -05:00
Mike Hardy
2deea495cb
Bumped version to 2.15.5beta1
@branch-specific
2021-07-05 12:56:23 -05:00
Mike Hardy
73098b6115
Fix StudyOptionsDialog crashes with getCol does not work
- getCol may return null if there are no permissions yet
- getCol may need to eat an exception if the backend is locked

(cherry picked from commit 722fe806bd)
2021-07-05 10:57:42 -05:00
Mike Hardy
a4eeda29fe
Test: probe deck picker on tablet since layout is different
If you uncomment the second/"xlarge" parameter, 4 tests fail, all related
to lack of permissions when deck picker loads on a tablet

(cherry picked from commit d86863f3dd)
2021-07-05 10:57:41 -05:00
Mike Hardy
4075d1b90a
Fix: pulling fresh translations from main results in unused and missing default
neither are important in this context - I've been carefully checking all the strings
as PRs go in
2021-07-04 23:47:00 -05:00
AnkiDroid Translations
0dce9344ba
Updated strings from Crowdin
(cherry picked from commit c2ed483a7e)
2021-07-04 23:21:42 -05:00
Mike Hardy
a8a8d92c96
Populate all hours in hourly stats chart
Fixes #8920

(cherry picked from commit 7cacb3396a)
2021-07-04 23:21:00 -05:00
AnkiDroid Translations
167e0cab2f
Updated strings from Crowdin
(cherry picked from commit 78c5b869ea)
2021-07-04 23:20:32 -05:00
David Allison
825072064b
fix: remove maxLength on paste_as_png_summary
Accidental inclusion

(cherry picked from commit 6b98266a12)
2021-07-04 23:20:06 -05:00
AnkiDroid Translations
7094a2afaa
Updated strings from Crowdin
(cherry picked from commit 2755576748)
2021-07-04 23:17:48 -05:00
Akshay
2e3dcae3b3
dropped AnkiActivity from CreateDeckDialogTest
(cherry picked from commit a57f063018)
2021-07-04 23:14:00 -05:00
AnkiDroid Translations
20066da5f3
Updated strings from Crowdin
(cherry picked from commit bf9b7b0b30)
2021-07-04 23:13:38 -05:00
AnkiDroid Translations
b66ec00754
Updated strings from Crowdin
(cherry picked from commit 1687817531)
2021-07-04 23:13:19 -05:00
AnkiDroid Translations
d5904ecee9
Updated strings from Crowdin
(cherry picked from commit fdf5583373)
2021-07-04 23:13:01 -05:00
Shridhar
8986586bc3
Remove boolean check in onProgressUpdate of DeckPicker
(cherry picked from commit 28e97b2992)
2021-07-04 23:12:44 -05:00
Shridhar
78ed572720
Fix crash on opening StudyOptionsFragment
(cherry picked from commit 4c61998246)
2021-07-04 23:12:18 -05:00
Mike Hardy
b752c5e26c
Revert "Revert "Add preference for full screen navigation drawer (#9015)""
This reverts commit 0f8e9fd6f7.
2021-07-04 23:10:27 -05:00
Mike Hardy
e323c5291f
Revert "Revert "Display study options properly on start on tablet (#8756)""
This reverts commit b559521a06.
2021-07-04 23:10:11 -05:00
AnkiDroid Translations
517db207b3
Updated strings from Crowdin
(cherry picked from commit bd9d4065fd)
2021-06-03 11:13:28 -05:00
David Allison
631c50888b
lint: DeckPickerFloatingActionMenu
(cherry picked from commit 2ca4938b4f)
2021-06-03 11:13:28 -05:00
David Allison
c8d19d621f
fix: make FAB labels clickable
This confused some users

fixes 9051

(cherry picked from commit 3dd64aa59a)
2021-06-03 11:13:24 -05:00
Mike Hardy
9dece41eb5
Bumped version to 2.15.4
@branch-specific
2021-06-02 15:51:44 -05:00
Mike Hardy
0f8e9fd6f7
Revert "Add preference for full screen navigation drawer (#9015)"
This reverts commit 4e914eae50.
2021-06-02 15:33:30 -05:00
Mike Hardy
b559521a06
Revert "Display study options properly on start on tablet (#8756)"
This reverts commit 6a0b1d38e5.
2021-06-02 15:09:48 -05:00
Shridhar Goel
6a0b1d38e5
Display study options properly on start on tablet (#8756)
* Display study options properly on start on tablet
* Add test

Co-authored-by: David Allison <62114487+david-allison-1@users.noreply.github.com>
(cherry picked from commit ca3aabe0c9)
2021-06-02 13:34:29 -05:00
Shridhar
180dfbe785
Update list when field reposition is done
(cherry picked from commit a05cf4efa3)
2021-06-02 13:25:52 -05:00
Mike Hardy
df27a1604a
Bumped version to 2.15.3
@branch-specific
2021-06-02 10:29:35 -05:00
Prateek Singh
f3ec41325a
Fixed Cloze text preview
(cherry picked from commit 658653ad28)
2021-06-02 08:17:22 -05:00
AnkiDroid Translations
b232d0da19
Updated strings from Crowdin
(cherry picked from commit 8c89c4c44b)
2021-06-02 08:14:41 -05:00
Shridhar Goel
59f895e7b0
Fix for empty search results and wrong card count (#8998)
* Fix for empty search results and wrong card count
* Add test

(cherry picked from commit 1bdd80e9b1)
2021-06-01 23:03:04 -05:00
Shridhar Goel
4e914eae50
Add preference for full screen navigation drawer (#9015)
(cherry picked from commit d0d1eddf60)
2021-06-01 23:00:41 -05:00
David Allison
3de30a3d4b
fix: don't clear text when opening nav bar
We do this with a temporary variable containing the current value
of the search bar.

There was a bug with setting this temporary, which we also fix:

Toggling the navbar called supportInvalidateOptionsMenu
This calls through to SearchView: as follows:

supportInvalidateOptionsMenu => MenuBuilder.clear()
MenuBuilder.clear() => collapseItemActionView(mExpandedItem);
=> onActionViewCollapsed
=> setQuery("", false);

We had a listener on setQuery, which then blanked the temp variable.
class: CardBrowserSearchView fixes this, by ignoring these methods
if it's triggered by collapse/expand

Fixes 9010

(cherry picked from commit a5363a2082)
2021-06-01 22:55:09 -05:00
David Allison
4a669169ea
NF: duplicate call to mSearchView.setQuery
Doesn't matter for now, but will do when we change
the two methods to do different things

Related: 9010
(cherry picked from commit 30ad7fc032)
2021-06-01 22:55:09 -05:00
Prateek Singh
f1641e1107
Fixed Bug #8973
(cherry picked from commit a4ab14c0f4)
2021-06-01 13:13:55 -05:00
Shridhar
2b5d0b2ed9
Fix link to help section of cloze deletion
(cherry picked from commit 2ac0e8b80f)
2021-06-01 13:04:03 -05:00
Shridhar
32dde12802
Add padding to undo icon
(cherry picked from commit 8ed613568e)
2021-06-01 09:13:53 -05:00
Arthur Milchior
221b5eb506
Uses legacy template if a template start with "{{=<% %>=}}"
(cherry picked from commit dcc29bce56)
2021-06-01 09:07:14 -05:00
Arthur Milchior
a1816d860f
NF: next_token may consider <%
(cherry picked from commit d3ea492f65)
2021-06-01 09:07:13 -05:00
Arthur Milchior
fb5f6a02be
NF: add new_text_token, new_and_legacy_text_token and tests
(cherry picked from commit d8c40f0c13)
2021-06-01 09:07:13 -05:00
Arthur Milchior
a53d6fdbde
NF: handlebar_token which can accept or reject <%
(cherry picked from commit 71b715c058)
2021-06-01 09:07:13 -05:00
Arthur Milchior
87993d48c8
NF: add legacy_handlebar_token
(cherry picked from commit 29d3f9d8bb)
2021-06-01 09:07:12 -05:00