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

7939 Commits

Author SHA1 Message Date
Brayan Oliveira
6e3bf2dacd Update general category title
It was using the app name as title. Now there is a string for it, it should be updated to be coherent with the appBar title.

Adding the chars limit is necessary to pass lint
2022-05-09 18:11:37 +01:00
Prince kushwaha
be9f4b8c03 Migrate CsvProcessIntegrationTest.java to Kotlin 2022-05-09 12:06:26 -05:00
Prince kushwaha
327cd32c78 Rename CsvProcessIntegrationTest.java to CsvProcessIntegrationTest.kt 2022-05-09 12:06:26 -05:00
Yuvraj S Bhadauria
d56d25bee1
[KotlinCleanup] BasicTextFieldController (#11234) 2022-05-09 11:56:27 -05:00
lukstbit
9921e406e0 Migrate TemporaryModel.java to Kotlin 2022-05-09 11:41:17 -05:00
lukstbit
e040ccd6fc Rename TemporaryModel.java to .kt 2022-05-09 11:41:17 -05:00
Yuvraj S Bhadauria
48679197d4
kotlin cleanup : CheckBoxTriState.kt (#11164) 2022-05-09 11:23:39 -05:00
David Allison
5ae0e2caa4 refactor: Convert NoteEditor to Kotlin
com.ichi2.anki.NoteEditor
2022-05-09 11:09:57 -05:00
David Allison
9bce95c44b refactor: Rename NoteEditor.java to .kt
com.ichi2.anki.NoteEditor
2022-05-09 11:09:57 -05:00
Nishant
aa8f0d45a7 Migrate NumberAtom to Kotlin 2022-05-09 10:59:20 -05:00
Nishant
89739b8ead Rename .java to .kt 2022-05-09 10:59:20 -05:00
Mohd Raghib
1411e1f3bc
[Kotlin Cleanup] ReadTextTest (#11262) 2022-05-09 10:45:57 -05:00
Brayan Oliveira
90b28df693 refactor: Convert BasicImageFieldController to Kotlin
com.ichi2.anki.multimediacard.fields.BasicImageFieldController
2022-05-09 10:34:55 -05:00
Brayan Oliveira
b9255761fa refactor: Rename BasicImageFieldController.java to .kt
com.ichi2.anki.multimediacard.fields.BasicImageFieldController
2022-05-09 10:34:55 -05:00
lukstbit
d54663a445 Migrate FuriganaFilters.java to Kotlin 2022-05-09 10:16:58 -05:00
lukstbit
5d1122bfb7 Rename FuriganaFilters.java to .kt 2022-05-09 10:16:58 -05:00
Prince kushwaha
dfbd6d26c5 Migrate PreferenceExtensionsTest.java to Kotlin 2022-05-09 09:57:00 -05:00
Prince kushwaha
4ec0c70b10 Rename PreferenceExtensionsTest.java to PreferenceExtensionsTest.kt 2022-05-09 09:57:00 -05:00
lukstbit
f027010c1c Migrate MathJax.java to Kotlin 2022-05-09 09:40:00 -05:00
lukstbit
e5e6399bd1 Rename MathJax.java to .kt 2022-05-09 09:40:00 -05:00
Brayan Oliveira
1e64833dfb refactor: Convert NavigationDrawerActivity to Kotlin
com.ichi2.anki.NavigationDrawerActivity
2022-05-09 09:20:16 -05:00
Brayan Oliveira
d985ac0b39 refactor: Rename NavigationDrawerActivity.java to .kt
com.ichi2.anki.NavigationDrawerActivity
2022-05-09 09:20:16 -05:00
oyeraghib
d8708b68eb [Kotlin Cleanup] CardBrowserTest 2022-05-09 15:19:57 +01:00
oyeraghib
37e3d34635 [Kotlin Cleanup] BackupManagerIntegrationTest 2022-05-09 15:19:07 +01:00
oyeraghib
c16260ba17 [Kotlin Cleanup] ReviewerNoParamTest 2022-05-08 21:52:01 +01:00
oyeraghib
c05bdb6671 [Kotlin Cleanup] PeripheralKeymapTest 2022-05-08 20:45:45 +01:00
oyeraghib
d55ca894bf [Kotlin Cleanup] LaTeXTest 2022-05-07 20:53:51 +01:00
oyeraghib
c6391d1718 [Kotlin Cleanup] IntentAssert 2022-05-07 20:53:02 +01:00
oyeraghib
800e8bdad6 [Kotlin Cleanup] HtmlColorsTest 2022-05-07 20:49:00 +01:00
oyeraghib
70d8cfc889 [Kotlin Cleanup] PreviewerTest 2022-05-07 20:47:13 +01:00
oyeraghib
e53c51d844 [Kotlin Cleanup] CardInfoModelTest 2022-05-07 20:46:45 +01:00
oyeraghib
8ba1f0246d [Kotlin Cleanup] InitialActivityWithConflictTest 2022-05-07 20:46:15 +01:00
oyeraghib
500bd8801c [Kotlin Cleanup] ImageFieldTest 2022-05-07 20:39:09 +01:00
oyeraghib
90b552aeb9 [Kotlin Cleanup] PieChartTestParametersBuilder 2022-05-07 20:38:43 +01:00
oyeraghib
5b02637062 [Kotlin Cleanup] MetaTest 2022-05-07 20:35:51 +01:00
Mike Hardy
1a546ad0be Bumped version to 2.16alpha64 2022-05-07 00:18:23 +00:00
AnkiDroid Translations
398606c64c Updated strings from Crowdin 2022-05-06 19:17:50 -05:00
Brayan Oliveira
57a4b15895 refactor: Convert PieChartTest to Kotlin
com.wildplot.android.rendering.PieChartTest
2022-05-06 18:07:10 -05:00
Brayan Oliveira
eaa5ec0a42 refactor: Rename PieChartTest.java to .kt
com.wildplot.android.rendering.PieChartTest
2022-05-06 18:07:10 -05:00
Nishant Bhandari
7c004b65d3
Renamed files extension to .kt extension in string xmls (#11239) 2022-05-06 17:48:15 -05:00
David Allison
3e41664fdb refactor: Convert Previewer to Kotlin
com.ichi2.anki.Previewer
2022-05-06 17:47:05 -05:00
David Allison
30a197a957 refactor: Rename Previewer.java to .kt
com.ichi2.anki.Previewer
2022-05-06 17:47:05 -05:00
David Allison
cdf58eadb6 refactor: Convert MetaDB to Kotlin
com.ichi2.anki.MetaDB
2022-05-06 17:38:56 -05:00
David Allison
e89f5b3be7 refactor: Rename MetaDB.java to .kt
com.ichi2.anki.MetaDB
2022-05-06 17:38:56 -05:00
lukstbit
62c43a8b42 Migrate NoteUtils.java to Kotlin 2022-05-06 17:09:51 -05:00
lukstbit
6ec572a308 Rename NoteUtils.java to .kt 2022-05-06 17:09:51 -05:00
lukstbit
86ff822ee2 Migrate TemplateError.java to Kotlin 2022-05-06 17:02:32 -05:00
lukstbit
36641bbfae Rename TemplateError.java to .kt 2022-05-06 17:02:32 -05:00
DONG Tingzhen
5867506aba
long-click on tag allows you to add sub-tag (#11199) 2022-05-06 16:51:33 -05:00
Shridhar Goel
9ca1a7272b
Add 'Any' constraint for 'CTX' (#11188) 2022-05-06 16:42:12 -05:00
oyeraghib
3f76d071db [Kotlin Cleanup] GestureProcessorTest 2022-05-06 16:32:33 -05:00
oyeraghib
d3fcd6df84 [Kotlin Cleanup] PieChartParameterizedTest 2022-05-06 16:29:06 -05:00
Nishant
5d41b08fb9 Removed meta data elements from AndroidManifest.xml 2022-05-06 16:27:59 -05:00
Brayan Oliveira
1057f1dffb Fix CardTemplateBrowserAppearanceEditor title
It wasn't being set before, so it defaulted to system's language instead of AnkiDroid's
2022-05-06 16:18:31 -05:00
Elizalll
f55c119969
Add the 'Always Show' and 'Show if room' to "Set TTS language" (#10941) 2022-05-06 16:03:48 -05:00
SIDDHARTH
6d9a7ed870
DeckOverview screen Overflow menu icon changed #10868 error solved (#10906) 2022-05-06 16:02:10 -05:00
lukstbit
66681aa71e Update the material library dependency to 1.6.0 2022-05-06 11:13:10 -05:00
Brayan Oliveira
bbd6904f00 refactor: Convert PieChartParameterizedTest to Kotlin
com.wildplot.android.rendering.PieChartParameterizedTest
2022-05-03 23:34:24 -05:00
Brayan Oliveira
f71f3ae832 refactor: Rename PieChartParameterizedTest.java to .kt
com.wildplot.android.rendering.PieChartParameterizedTest
2022-05-03 23:34:24 -05:00
Prince kushwaha
d109eb503e Migrate StringUtilsTest.java to Kotlin 2022-05-03 23:24:26 -05:00
Prince kushwaha
2c7c0e905a Rename StringUtilsTest.java to StringUtilsTest.kt 2022-05-03 23:24:26 -05:00
Prince kushwaha
a582349586 Migrate TemplateTest.java to Kotlin 2022-05-03 22:07:19 -05:00
Prince kushwaha
9d690e922f Rename TemplateTest.java to TemplateTest.kt 2022-05-03 22:07:19 -05:00
Brayan Oliveira
78148b7fbd NF: Use same param names on NavigationDrawerActivity inheritors
This is necessary to kotlin migration of NavigationDrawerActivity
2022-05-03 21:18:05 -05:00
David Allison
a42802d7e1 refactor: Fix lint weak warnings
one remains: Format string '`studyoptions_congrats_undo`' is not a valid format string
so it should not be passed to `String.format`
2022-05-03 21:06:00 -05:00
David Allison
ca039c7c3e refactor: Fix lint warnings
Parameter was always false - turns out we could simplify the call
2022-05-03 21:06:00 -05:00
Yuvraj S Bhadauria
3d6d145605
Category heading on the toolbar of settings section 2022-05-03 20:58:02 -05:00
Brayan Oliveira
8f9f8c2261 Use JUnit5 on tests
1. Extract JUnit version to a constant, so all 3 testImplementations uses the same version
2. Add JUnitPlatform use to `build.gradle`
3. Fix imports to `kotlin.test.junit5.JUnit5Asserter`
4. Fix `AbstractFlashcardViewerTest.getSignalFromUrlTest`
- It is currently the only parameterized test that uses jupiter-params. It wasn't being discovered before, so it haven't raised any exception.
- Now that it's discovered, it needed to be fixed
2022-05-01 19:13:49 -05:00
Brayan Oliveira
2458c6ae63 Set title on SharedDecksActivity creation
Fixes the problem of using system's language instead of AnkiDroid's
2022-05-01 21:07:48 +01:00
oyeraghib
ac79fcd376 [Kotlin Cleanup] RustTest 2022-05-01 13:05:25 +01:00
oyeraghib
081b1f2b56 [Kotlin Migration] RustTest 2022-04-30 18:28:47 -05:00
oyeraghib
8617d260db Rename RustTest.java to RustTest.kt 2022-04-30 18:28:47 -05:00
Mike Hardy
f50aef7ec1 Bumped version to 2.16alpha63 2022-04-30 19:26:59 +00:00
AnkiDroid Translations
8630b14873 Updated strings from Crowdin 2022-04-30 14:03:02 -05:00
krmanik
4644d2416e enhance reschedule js api 2022-04-30 13:43:26 -05:00
krmanik
7c42493f14 reset progress 2022-04-30 13:43:26 -05:00
oyeraghib
5862bfad77 [Kotlin Cleanup] LanguageUtilsTest 2022-04-30 13:36:33 -05:00
oyeraghib
91ae67b7f9 [Kotlin Cleanup] MockContentResolver 2022-04-30 13:20:18 -05:00
oyeraghib
ce5b9e13b9 [Kotlin Cleanup] MissingImageHandlerTest 2022-04-30 13:09:26 -05:00
oyeraghib
ac39a3db4a [Kotlin Cleanup] DBTest 2022-04-30 12:25:56 -05:00
oyeraghib
76cd977479 [Kotlin Cleanup] CardTemplateTest 2022-04-30 12:22:25 -05:00
lukstbit
bf3595f2a4 Fix Parcelable.Creator implementation for FieldEditText 2022-04-30 12:19:50 -05:00
oyeraghib
29500639c7 [Kotlin Cleanup] IntentHandlerTest 2022-04-30 12:12:56 -05:00
oyeraghib
c3516d6ead [Kotlin Cleanup] FragmentFactoryUtilsTest 2022-04-30 11:43:16 -05:00
oyeraghib
15abefa660 [Kotlin Cleanup] ResourceLoader 2022-04-30 11:42:53 -05:00
oyeraghib
6e67bc23cc [Kotlin Cleanup] FileUtilTest 2022-04-30 11:42:26 -05:00
oyeraghib
9ac5362c01 [Kotlin Cleanup] DeckNameComparatorTest 2022-04-30 11:41:25 -05:00
David Allison
ce8df179bd feat: Double tap FAB to add node
Fixes 11084
2022-04-29 16:50:11 -05:00
David Allison
b008a2274d refactor: add Context to FAB constructor
Allows for testing and splits out the context from the DeckPicker
2022-04-29 16:50:11 -05:00
lukstbit
ae0a133376 Migrate FieldEditLine.java to Kotlin 2022-04-29 16:34:00 -05:00
lukstbit
a45903c1be Rename FieldEditLine.java to .kt 2022-04-29 16:34:00 -05:00
Prince kushwaha
db8bd332cf Migrate TextCardExporterTest.java to Kotlin 2022-04-29 16:26:20 -05:00
Prince kushwaha
2cb6d216c8 Rename TextCardExporterTest.java to TextCardExporterTest.kt 2022-04-29 16:26:20 -05:00
Brayan Oliveira
ae545cf1f5 refactor: Convert CustomTabActivityHelperTest to Kotlin
com.ichi2.compat.customtabs.CustomTabActivityHelperTest
2022-04-29 16:07:58 -05:00
Brayan Oliveira
01bb91f3bb refactor: Rename CustomTabActivityHelperTest.java to .kt
com.ichi2.compat.customtabs.CustomTabActivityHelperTest
2022-04-29 16:07:58 -05:00
Brayan Oliveira
de000fcc5e refactor: Convert DeckPickerImportTest to Kotlin
com.ichi2.anki.DeckPickerImportTest
2022-04-29 16:01:22 -05:00
Brayan Oliveira
3e0c07654c refactor: Rename DeckPickerImportTest.java to .kt
com.ichi2.anki.DeckPickerImportTest
2022-04-29 16:01:22 -05:00
Brayan Oliveira
b6be3174af refactor: Convert InfoTestNoOnCreate to Kotlin
com.ichi2.anki.InfoTestNoOnCreate
2022-04-29 15:30:09 -05:00
Brayan Oliveira
3e39387d52 refactor: Rename InfoTestNoOnCreate.java to .kt
com.ichi2.anki.InfoTestNoOnCreate
2022-04-29 15:30:09 -05:00
oyeraghib
62c82d62bc [Kotlin Cleanup] CollectionUtilsTest 2022-04-29 15:22:58 -05:00
Jatin887
f13bd1fab5 [KotlinCleanup] AnkiDroidJsAPI.kt 2022-04-29 15:22:48 -05:00
oyeraghib
9e88bda35b [Kotlin Cleanup] ExceptionUtilTest 2022-04-29 15:22:41 -05:00
Brayan Oliveira
4e183ec9b8 refactor: Convert PieChartTestParametersBuilder to Kotlin
com.wildplot.android.rendering.PieChartTestParametersBuilder
2022-04-29 15:22:32 -05:00
Brayan Oliveira
6b5c94bdae refactor: Rename PieChartTestParametersBuilder.java to .kt
com.wildplot.android.rendering.PieChartTestParametersBuilder
2022-04-29 15:22:32 -05:00
Jatin887
1bb95cd905 [KotlinCleanup] OverviewStatsBuilder.kt 2022-04-29 15:15:46 -05:00
oyeraghib
06c2e548da [Kotlin Cleanup] UniqueArrayListTest 2022-04-29 15:15:34 -05:00
oyeraghib
a1409d102e [Kotlin Cleanup] OnRenderProcessGoneDelegateTest 2022-04-29 15:15:25 -05:00
puranjayK
7599d45299 Added test message explanations 2022-04-29 15:09:19 -05:00
lukstbit
d628f4fd8b Migrate UndoTest.java to Kotlin 2022-04-29 14:34:45 -05:00
lukstbit
f67929b5f5 Rename UndoTest.java to .kt 2022-04-29 14:34:45 -05:00
DONG Tingzhen
b2883c03ef
Add support for hierarchy tag (#10966) 2022-04-29 13:56:20 -05:00
oyeraghib
b25c8484c9 [Kotlin Cleanup] TestCardTemplatePreviewer 2022-04-29 13:38:06 -05:00
oyeraghib
79aec75210 [Kotlin Cleanup] MapUtilTest 2022-04-29 13:31:26 -05:00
oyeraghib
95e63832cc [Kotlin Cleanup] AssertHelperTest 2022-04-29 13:28:50 -05:00
oyeraghib
29f70b3bdb [Kotlin Cleanup] BundleUtilsTest 2022-04-29 13:28:24 -05:00
oyeraghib
3daa0298ea [Kotlin Cleanup] ContentResolverUtilTest 2022-04-29 13:28:11 -05:00
oyeraghib
0e038c2fd0 [Kotlin Cleanup] StringUtilTest 2022-04-29 13:27:51 -05:00
MacAndSwiss
455af336df Manual migration of CardBrowserTest to Kotlin 2022-04-29 13:22:36 -05:00
MacAndSwiss
d6ae12c4db Manual renaming of CardBrowserTest.java to Kotlin 2022-04-29 13:22:36 -05:00
Propo41
cd5b13ec55 added test coverage for the login method of MyAccount.kt without server side mocking 2022-04-29 13:01:28 -05:00
Brayan Oliveira
72c44b229d refactor: Convert DiffEngineTest to Kotlin
com.ichi2.anki.utils.DiffEngineTest
2022-04-29 12:17:50 -05:00
Brayan Oliveira
15a4424dcb refactor: Rename DiffEngineTest.java to .kt
com.ichi2.anki.utils.DiffEngineTest
2022-04-29 12:17:50 -05:00
lukstbit
36205b500c Fix @KotlinCleanup for IFieldController 2022-04-29 12:08:49 -05:00
lukstbit
599c505751
Centralize all ACRA related code in CrashReportService (#11109) 2022-04-27 09:29:42 -05:00
Mike Hardy
b1a0974c91 Bumped version to 2.16alpha62 2022-04-27 00:21:46 +00:00
codingtosh
fbfc620072 refactor: Convert AbstractFlashcardViewerCommandTest.java to Kotlin
com.ichi2.anki.AbstractFlashcardViewerCommandTest
2022-04-26 16:41:36 -05:00
codingtosh
03d1ea520f refactor: Rename AbstractFlashcardViewerCommandTest.java to .kt
com.ichi2.anki.AbstractFlashcardViewerCommandTest
2022-04-26 16:41:36 -05:00
lukstbit
f43d8e6482 Migrate CardContentProvider.java to Kotlin 2022-04-26 16:23:51 -05:00
lukstbit
ac2bef798b Rename CardContentProvider.java to .kt 2022-04-26 16:23:51 -05:00
Brayan Oliveira
388bb20683 Use constants on timeoutAnswer preference 2022-04-26 16:04:36 -05:00
Brayan Oliveira
9add96a1da Use constants on gesturesCornerTouch key 2022-04-26 16:04:36 -05:00
Brayan Oliveira
398eb19a76 Use constants on gestures key 2022-04-26 16:04:36 -05:00
dorrin-sot
a7948a4e05
Fixed "CheckMedia" causing crash (#10931)
* Added read permission check to DeckPicker::mediaCheck()
* Replaced all individual storage permission checks with both storage permission checks
* Fixed Welcome Dialog showing for non-First-Time startup
* Added a boolean SharedPref `"welcomeDialogDismissed"` to check whether to show welcome dialog
2022-04-26 15:56:46 -05:00
David Allison
4580f3c695 refactor: simplify enabling toolbar
It was asked if it was possible to remove the !!s on supportActionBar

So now:

enableToolbar:
* returns the ActionBar which is created
* now throws if provided an invalid view
* Does not accept a `null` view

use the following code to work with a non-null bar:

```kotlin
enableToolbar().apply {

}
```
2022-04-26 15:44:18 -05:00
oyeraghib
2e748a6373 [Kotlin Cleanup] ExtendedFragmentFactoryTest.kt 2022-04-26 10:00:31 -05:00
dorrin-sot
4939304351
Made Focusable DeckOptions Preferences Auto-Focus (#11087)
* Made Focusable DeckOptions Preferences Auto-Focus
* Made Default AutoFocus behavior "Cursor at the end"
2022-04-26 09:41:08 -05:00
oyeraghib
611844a8d7 [Kotlin Cleanup] HtmlUtilsTest.kt 2022-04-26 09:25:22 -05:00
oyeraghib
b0abb84f67 [Kotlin Cleanup] MockTimeTest.kt 2022-04-26 09:18:42 -05:00
codingtosh
217430c44c refactor: Convert CardTemplatePreviewerTest.java to Kotlin
com.ichi2.anki.CardTemplatePreviewerTest
2022-04-26 09:09:07 -05:00
codingtosh
7aff669c45 refactor: Rename CardTemplatePreviewerTest.java to .kt
com.ichi2.anki.CardTemplatePreviewerTest
2022-04-26 09:09:07 -05:00
Prince kushwaha
fc2efb7778 Migrate UtilsTest.java to Kotlin 2022-04-26 08:56:02 -05:00
Prince kushwaha
8f3ab0b691 Rename UtilsTest.java to UtilsTest.kt 2022-04-26 08:56:02 -05:00
Brayan Oliveira
1d9462e669 Use same transition direction of swipe on Add note command 2022-04-26 08:42:39 -05:00
Brayan Oliveira
d6223f3d60 Use same transition direction of swipe on Card info command 2022-04-26 08:42:39 -05:00
Brayan Oliveira
3d792cb0bd Use same transition direction of swipe on Edit card command 2022-04-26 08:42:39 -05:00
Brayan Oliveira
542c8888c7 Add method to get same animation direction of a swipe gesture
If gesture is a swipe, return a transition to the same direction of the swipe.

Else return FADE as the default animation
2022-04-26 08:42:39 -05:00
Brayan Oliveira
25837c4349 Add fromGesture param to executeCommand()
This allows to know which gesture triggered the command
2022-04-26 08:42:39 -05:00
Brayan Oliveira
ecacf3105f Add DOWN animation transition
Inverse of the UP animation
2022-04-26 08:42:39 -05:00
Brayan Oliveira
ee27f6a459 Add RIGHT and LEFT animation transitions
Useful to explicitly use right or left transitions
2022-04-26 08:42:39 -05:00
Brayan Oliveira
479f5a920b Rename Direction.DOWN to DEFAULT
The DOWN animation direction was using the default Android animation, which isn't guaranteed to come from down
2022-04-26 08:42:39 -05:00