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

12046 Commits

Author SHA1 Message Date
AnkiDroid Translations
ccd8cd33fb Updated strings from Crowdin 2020-12-20 14:46:34 -05:00
Arthur Milchior
e10b1d703d Editing a card in a filtered deck show both decks
Currently, when you open a card editor, it shows the card current deck. In case of filtered deck, it shows the filtered
deck.  The trouble in my opinion is that there is no way to know what is the usual deck of the card. That's extremely
useful when I need to move a card to a different deck.

The solution I use is to show the current deck and the original deck in parenthesis. This seems to me to be consistent
with anki's browser's deck column.
2020-12-20 14:28:07 -05:00
Mike Hardy
20900641d9
Update URL of API module upload tutorial 2020-12-20 14:01:32 -05:00
Mike Hardy
4bd36354d2
Fix javadoc parameter names in AddContentApi method
They all had trailing ':' on them, easy fix
2020-12-20 13:59:37 -05:00
Mike Hardy
037a61dba4
Fix javadoc compile classpath for API module 2020-12-20 13:58:39 -05:00
Mike Hardy
f5d4d9d0f9
Bump API version code to match version 2020-12-20 13:52:34 -05:00
Danny
d12cb05934 Bump API to 1.1.0 2020-12-20 13:50:21 -05:00
Henrik Giesel
205322b15c Bump androidx.webkit to 1.4.0 2020-12-20 13:49:46 -05:00
Henrik Giesel
2be4bf1ba1 Add experimental support for dynamic import in Reviewer JS 2020-12-20 13:49:46 -05:00
Michael Yared
013a2ac2fb Added gesture actions record and replay voice (36 37) 2020-12-20 13:37:24 -05:00
Mike Hardy
f4ea2187a6 Add globs to Github Actions workflow path inclusion filters
Still tuning to get them to run exactly when I want them...
...and not when I don't
2020-12-20 13:22:29 -05:00
Mike Hardy
a656c7fc1f Bump API compileSdkVersion to 30 2020-12-20 13:22:29 -05:00
Mike Hardy
e696f3a58a Make Travis build toggles into generic CI toggles
This makes the build settings that change in virtualized / CI environments
generic across any CI provider

Needed for port to Github Actions
2020-12-20 13:22:29 -05:00
Mike Hardy
0196da1a5d Remove ADB options from AnkiDroid build.gradle
This was needed from when ARM emulators were used, to avoid timeouts
during app install. No longer necessary as we don't support non-accelerated
emulators anymore

Fixes #7852
2020-12-20 13:22:29 -05:00
Michael Yared
73de53285f Removed isTranslatable=false 2020-12-20 13:21:31 -05:00
Michael Yared
ec5d9e535c Toggle Whiteboard Gesture: Syntactic changes before pull request 2020-12-20 13:21:31 -05:00
tkgz
be70f9ae13 Togglewhiteboard: basic functionality seems to work 2020-12-20 13:21:31 -05:00
Michael Yared
d3e0dcfd9d removed useless comments 2020-12-20 13:21:31 -05:00
Michael Yared
b74735a9e2 Added gesture action toggle whiteboard preference option 2020-12-20 13:21:31 -05:00
David Allison
5482023f27 Add Preference to disable monospace font usage
In older WebViews, using a monospace font meant that some Polytonic Greek
characters did not display

This applied to <pre> and <code>, a <span> worked best to fix this.

Replicated on an API 28 emulator - will take a long time to remove this.

Fixes 7896
2020-12-20 12:34:31 -05:00
Mike Hardy
3ab8272baa Alter robolectric download task for minSdkVersion 21 2020-12-20 12:18:00 -05:00
Arthur Milchior
8872a89a8c Move button collor from blue 700 to 800
This ensure that the contrast is good enough for accesibility standard, the scanner's warning gets removed
2020-12-20 12:17:48 -05:00
Mike Hardy
2afa2cdce2
Alter workflow path inclusion rules for lint/tests
the robolectric downloader PR did not trigger a testing run like I expected,
causing me to audit the inclusion rules more carefully
2020-12-20 11:43:56 -05:00
Mike Hardy
efb9d5182d
Use retry GitHub Action appropriately
fixes "a step cannot have both the `uses` and `run` keys
2020-12-20 11:12:33 -05:00
Mike Hardy
6e4165f9f0
chore: add Github Actions for tests / lint 2020-12-20 11:08:29 -05:00
Arthur Milchior
b384a650ef NF: delete mathjax fonts 2020-12-17 17:10:16 -05:00
Arthur Milchior
42afcfc270 Mathjax output SVG instead of css
This should hopefully solves #7848, i.e. on samsung tablets, formulas are not correctly displayed.
The downsides are mentionned in http://docs.mathjax.org/en/latest/output/svg.html :
* it copy as image and not as text
* change in numbering of tags of equation (normally, cards are small enough that's not a problem)
2020-12-17 17:10:16 -05:00
Mike Hardy
fa3c20167b Bumped version to 2.15alpha16
@branch-specific
2020-12-14 14:45:17 +00:00
David Allison
a2825d6185 DiffEngine: Escape fewer characters
Moving from getCompat().detagged(str) to Html.escapeHtml meant that
unicode characters were escaped using HTML entities.

The problem with this is that some WebViews did not display &#8016;
but they did display the unicode

So we move back to only escaping the dangerous HTML

https://stackoverflow.com/questions/35104032/whats-the-difference-between-androids-html-escapehtml-and-textutils-htmlencode

Aside: This means that quotes are now escaped in the input/output.
This should not be an issue as &quot; / &#39; should be supported.

Fixes 7896
2020-12-14 09:30:34 -05:00
David Allison
bf73ba5375 DiffEngine: Refactor and Test
Mostly adding regression cover for the HTML escaping that used to occur in
13c27a6a1f from CompatV15.detagged

We moved to Html.escapeHtml, but this also escapes some characters such as
Polytonic Greek, which some browsers cannot display as HTML entities
(but Unicode works)

This also adds a failing test for us to fix in a follow-up commit
2020-12-14 09:30:34 -05:00
Henrik Giesel
10cd2c8b7c Put card outside of scope of MathJax callback 2020-12-14 09:16:38 -05:00
Arthur Milchior
b2fb9422a0 NF: remove useless semicolons 2020-12-14 09:15:36 -05:00
Arthur Milchior
2bd41e0ca6 NF: ignore a useless cast warning 2020-12-14 09:13:51 -05:00
David Allison
59fcc7ca5f BugFix: Import displays import dialog
showImportDialog's call to ImportDialog.newInstance was removed in 24443a3

Also adds basic tests to exercise functionality

Fixes 7898
2020-12-14 09:09:27 +01:00
David Allison
53944a2113 Revert "NF: showImportDialog takes no useless parameters"
This reverts commit 4bedb0f5
2020-12-14 09:09:27 +01:00
Mike Hardy
1c99901902 Bumped version to 2.15alpha15
@branch-specific
2020-12-13 14:02:58 +00:00
Mike Hardy
b787aa1c9d
Fix build break from #7878
This bears closer inspection
2020-12-13 08:51:46 -05:00
AnkiDroid Translations
104fb037d4 Updated strings from Crowdin 2020-12-13 08:51:39 -05:00
Arthur Milchior
369aa3dce4 NF: Uses java style array 2020-12-13 08:34:22 -05:00
Arthur Milchior
854d3254e4 NF: remove warning about useless array creation 2020-12-13 08:33:40 -05:00
Arthur Milchior
2ea1836074 NF: remove useless this/super 2020-12-13 08:33:07 -05:00
Arthur Milchior
34c87ba75f NF: remove useless casts, and related warning 2020-12-13 08:30:34 -05:00
Arthur Milchior
dfbd491b3d NF: remove unused label 2020-12-13 08:29:42 -05:00
Arthur Milchior
8bd4b69964 NF: remove unused exceptions throwing type 2020-12-13 08:28:51 -05:00
Arthur Milchior
480d3bf092 NF: remove redundant variable warning 2020-12-13 08:28:05 -05:00
Arthur Milchior
ba82d103b2 NF: remove redundant type introduction
The `T` is already introduced in the class above
2020-12-13 08:27:22 -05:00
Arthur Milchior
67d636de3f NF: remove redundant if warning 2020-12-13 08:25:34 -05:00
Arthur Milchior
867a68b88c NF: remove @VisibleForTesting
I have no idea why I added it, clearly, this CardQueue is expected to be used in real code
2020-12-13 08:24:10 -05:00
Arthur Milchior
6f565d2a3b NF: doProgress takes a single parameter
This also moves the warning about unchecked from all doProgress to the definition of doProgress
2020-12-13 08:23:32 -05:00
Arthur Milchior
a468ee58be NF: avoid function returning null, moving them to specific classes 2020-12-13 08:09:49 -05:00