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

15551 Commits

Author SHA1 Message Date
Jatin
9631e8f4e4
[KotlinCleanup] ActivityExportingDelegate.kt (#11289) 2022-05-10 10:14:54 -05:00
dorrin-sot
8728a9647f
Fixed A:: last deck not being escaped to "blank" (#11131) 2022-05-10 09:58:33 -05:00
Nishant Bhandari
3a1d5aedd7
feat: import multiple files (#10851) 2022-05-10 09:53:06 -05:00
puranjayK
15cd719ba5 Added test message explanations 2022-05-10 15:50:42 +01:00
Mahathi Vempati
30811aa2d3
Truncate Option in Card Browser (#10863) 2022-05-10 08:55:54 -05:00
Brayan Oliveira
5007e3d2fd Add inverse finish transitions on Card info command
Overriding `onBackPressed()` is necessary because it triggered the default `finish()`, and finish() shouldn't be directly overriden because AnkiActivity deprecates it

Overriding `onActionBarBackPressed()` is necessary because super's (AnkiActivity) equivalent finishes without animation
2022-05-10 08:31:56 -05:00
Brayan Oliveira
cf0cfbb1cd Add inverse finish transitions on Add note and Edit note commands
Both are NoteEditor's actions, so they can be handled together
2022-05-10 08:31:56 -05:00
Brayan Oliveira
442b009a0e Move openCardInfo() to Reviewer.kt
Reviewer is the only inheritor of AbstractFlashcardViewer which calls `openCardInfo`

Another reason is to simplify the use/importing of the constants/methods necessary to implement the reverse transitions on finish
2022-05-10 08:31:56 -05:00
Brayan Oliveira
10cbe75d81 Rename CALLER_REVIEWER to CALLER_REVIEWER_EDIT
Since there is a `CALLER_REVIEWER_ADD` constant, it wasn't clear what was the supposed use of `CALLER_REVIEWER`
2022-05-10 08:31:56 -05:00
Brayan Oliveira
e3f8bd3d82 Add method to return the inverse transition of an animation direction
`getInverseTransition()`
2022-05-10 08:31:56 -05:00
Brayan Oliveira
a5ae9e8c24 Make possible to pass a finish animation on a intent
- Parcelize animation direction so it can be passed as an extra
- Add an extra key for finish animations
2022-05-10 08:31:56 -05:00
lukstbit
c6760bb2d0 Add NeedTest note for changes to list of note types 2022-05-10 08:23:03 -05:00
lukstbit
de4dde7ffa Make adapter in ModelBrowser to use the proper backing list 2022-05-10 08:23:03 -05:00
Nishant
4f58ed78df Fixed no splash screen in shortcuts. 2022-05-10 08:15:48 -05:00
Brayan Oliveira
e34874184b refactor: Convert CardTemplateEditor to Kotlin
com.ichi2.anki.CardTemplateEditor
2022-05-10 08:14:55 -05:00
Brayan Oliveira
1103912cc7 refactor: Rename CardTemplateEditor.java to .kt
com.ichi2.anki.CardTemplateEditor
2022-05-10 08:14:55 -05:00
Jatin887
d73d6bd066 [KotlinCleanup] Previewer.kt 2022-05-10 08:05:59 -05:00
Brayan Oliveira
c33e7ea8a6 Fix crash if no video or audio is selected on NoteEditor
Fixes handling of `audioPath` nullability and add tests
2022-05-10 07:48:44 -05:00
lukstbit
91ee9b25bb Migrate CsvReaderIterator.java to kotlin 2022-05-09 13:40:51 -05:00
lukstbit
f5a7d72875 Rename CsvReaderIterator.java to .kt 2022-05-09 13:40:51 -05:00
lukstbit
6857229658 Migrate CsvSniffer.java to kotlin 2022-05-09 12:59:57 -05:00
lukstbit
640ef9fec8 Rename CsvSniffer.java to .kt 2022-05-09 12:59:57 -05:00
Brayan Oliveira
eda9633f55 refactor: Convert DeckOptions to Kotlin
com.ichi2.anki.DeckOptions
2022-05-09 12:51:30 -05:00
Brayan Oliveira
2cca0978f3 refactor: Rename DeckOptions.java to .kt
com.ichi2.anki.DeckOptions
2022-05-09 12:51:30 -05:00
Prince kushwaha
9a17d3e8db Migrate ParserTest.java to Kotlin 2022-05-09 12:34:43 -05:00
Prince kushwaha
9a71bfde4c Rename ParserTest.java to ParserTest.kt 2022-05-09 12:34:43 -05:00
Prince kushwaha
146c45cfd4 Migrate SchedUpgradeTest.java to Kotlin 2022-05-09 12:22:53 -05:00
Prince kushwaha
d56065612f Rename SchedUpgradeTest.java to SchedUpgradeTest.kt 2022-05-09 12:22:53 -05:00
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
Nishant
513a6c1e2d kotlinMigration.gradle for api project. 2022-05-09 12:07:57 -05: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