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

15524 Commits

Author SHA1 Message Date
Prateek Singh
dbda37a8aa Rename .java to .kt 2022-05-31 23:22:06 +02:00
lukstbit
7abeef8248 Migrate HostNum.java to .kt 2022-05-31 23:17:47 +02:00
lukstbit
94d2dd5e43 Rename HostNum.java to .kt 2022-05-31 23:17:47 +02:00
oyeraghib
c201dd769c [Kotlin Cleanup] DialogHandler 2022-05-31 23:16:17 +02:00
oyeraghib
e64912c9e2 [Kotlin Cleanup] ActionButtonStatusTest 2022-05-31 23:13:29 +02:00
oyeraghib
42a6e5117b rename UNDO_NAME_ID 2022-05-31 22:19:24 +02:00
oyeraghib
6ca833a277 IDE based lint 2022-05-31 22:19:24 +02:00
oyeraghib
cd4c5dc478 cleanup - IDE lint 2022-05-31 22:18:40 +02:00
oyeraghib
22e9ca4e66 cleanup is -> equalTo 2022-05-31 22:18:40 +02:00
dorrin-sot
3974d02faa mMySearchesDialogListener.onSaveSearch cleanup 2022-05-31 21:52:50 +02:00
dorrin-sot
88031ff502 getPropertiesForCardId for cleanup 2022-05-31 21:52:50 +02:00
dorrin-sot
bcd44c8af6 checkedCardIds for cleanup 2022-05-31 21:52:50 +02:00
oyeraghib
62e94628be cleanup - IDE lint 2022-05-31 13:51:35 +02:00
oyeraghib
c35a7d52d8 cleanup - is -> equalTo 2022-05-31 13:51:35 +02:00
dorrin-sot
1cd3a5a20e CardCollection make mWrapped nonNull 2022-05-31 10:48:05 +02:00
dorrin-sot
c4b783593a allCardIds for cleanup 2022-05-31 10:48:05 +02:00
dorrin-sot
6037dddbff CardCollection::ensureValidValue null check cleanup 2022-05-31 10:48:05 +02:00
dorrin-sot
10a55713e4 CardCollection::reverse for cleanup 2022-05-31 10:48:05 +02:00
Arthur Milchior
304aa0d639 NF: move preference to lateinit in FilteredDeckOptions 2022-05-30 18:21:47 +02:00
Mike Hardy
005ffeb56b
Dependency updates 20220529 2022-05-30 09:43:35 -05:00
Elizalll
4e70260e88
[Automation] Remove assignees on merged Pull Request (#11432) 2022-05-29 22:13:09 -05:00
lukstbit
1fabcffcad Update image cropper library dependency to 4.2.1
This update required a refactoring of the code around cropping an image as the newer version of the library relies on
the newer ActivityResultLauncher/Contract apis.
2022-05-29 22:09:46 -05:00
oyeraghib
29b334fbf7 [Kotlin Cleanup] ParserTest 2022-05-29 22:07:46 -05:00
Arthur Milchior
1deca6b22d NF: info use scoped function 2022-05-29 22:06:00 -05:00
oyeraghib
e4432d044b [Kotlin Cleanup] Tags 2022-05-29 21:56:24 -05:00
Arthur Milchior
035f5e57ce
Mention migrate.sh in documentation (#11394) 2022-05-29 21:44:18 -05:00
Arthur Milchior
15ac02cfff NF: replace append by a template
I believe it's easier to read this way.
2022-05-29 21:42:28 -05:00
Arthur Milchior
a682efc7ba NF: move function result in values
This will make final string simpler to read
2022-05-29 21:42:28 -05:00
Arthur Milchior
6f04f628ff NF: remove chaining of append
It'll help review next commit
2022-05-29 21:42:28 -05:00
Arthur Milchior
572679fd73 NF: nonNullable arg in getAboutAnkiDroidHtml
This is called twice with non null values.
2022-05-29 21:42:28 -05:00
Arthur Milchior
9256688218 NF: rename position in cardIndex
The word "Position" is used both to represent cursor position and card
index. Too confusing. This should help clarify this code.

Also, same key was used to save map and int. I belive this will clarify the
saved instance state.
2022-05-29 21:38:38 -05:00
Arthur Milchior
8156d8df6d NF: uses constant for key "position" 2022-05-29 21:38:38 -05:00
Arthur Milchior
dea74bdc3d NF: rename mEditorPosition
This ensure that inner and outer member are easy to distinguish in search.
Also, I believe the new name is more descriptive.

It will also make clear which key is associated to an int and which one to a map
2022-05-29 21:38:38 -05:00
Arthur Milchior
5885fd5ea2 NF: remove redundant nullity check
this method can only be called once, during the only creation, and the
unmontReceiver is necessarily null at this step.
2022-05-29 21:31:30 -05:00
Arthur Milchior
a620944a4d NF: factorize collection in deck options 2022-05-29 21:28:08 -05:00
Arthur Milchior
bc99440600 NF: remove duplicate nullability tests 2022-05-29 21:28:08 -05:00
krmanik
9c9b9f0332 enable dom storage in webview for sessionStorage & localStorage 2022-05-29 21:18:42 -05:00
lukstbit
e6a1698025 Migrate LaTeX.java to .kt 2022-05-29 12:34:13 +02:00
lukstbit
330d353351 Rename LaTeX.java to .kt 2022-05-29 12:34:13 +02:00
codingtosh
502ee7a824 Include Edgecases in kotlin migration script + Touch ups
Fix: #11102

Edgecases included:
1. File Renamed instead of deleted+new file
   If the changes made to the file after kotlin conversion
   are not too different, Git's heuristics identifies the
   changelist as a rename directly and "git status" outputs
   "renamed :" instead of "deleted:" + "new file:".
2. Files modified:
   Let the user confirm whether all modified changes are intended.
2022-05-27 10:13:24 +02:00
dorrin-sot
8db4f8a009 Fixed Reviewer not updating after changing card in Browser 2022-05-26 22:22:15 +02:00
Prateek Singh
2cd449e284 Converted DirectCalendarInstanceUsageTest [Lint Test] to Kotlin 2022-05-26 16:54:13 +02:00
Prateek Singh
c8904fb919 Rename .java to .kt 2022-05-26 16:54:13 +02:00
lukstbit
11d6832ec6 Cleanup for file RemoteServer.kt 2022-05-26 15:51:37 +02:00
lukstbit
44a3850d29 Refactor to use Collection parameter in onCollectionLoaded callback 2022-05-26 15:45:36 +02:00
Nishant
9024e6629b Migrate Utils to Kotlin 2022-05-24 10:35:58 -05:00
Nishant
f5b3844854 Rename .java to .kt 2022-05-24 10:35:58 -05:00
Prince kushwaha
c4f0b56956 Migrate PeripheralKeymapTest.java to Kotlin 2022-05-24 09:56:27 -05:00
Prince kushwaha
510d87a128 Rename PeripheralKeymapTest.java to PeripheralKeymapTest.kt 2022-05-24 09:56:27 -05:00
Prince kushwaha
85648e8434 Migrate ActionBarOverflowTest.java to Kotlin 2022-05-24 09:44:51 -05:00