David Allison
a8ff459281
refactor: Convert StringFormatDetector to Kotlin
...
com.ichi2.anki.lint.utils.StringFormatDetector
2022-05-10 19:04:53 -05:00
David Allison
884ce1065f
refactor: Rename StringFormatDetector.java to .kt
...
com.ichi2.anki.lint.utils.StringFormatDetector
2022-05-10 19:04:53 -05:00
David Allison
5548273bdd
refactor: Convert LintUtils to Kotlin
...
com.ichi2.anki.lint.utils.LintUtils
2022-05-10 18:55:24 -05:00
David Allison
abb3220e68
refactor: Rename LintUtils.java to .kt
...
com.ichi2.anki.lint.utils.LintUtils
2022-05-10 18:55:24 -05:00
David Allison
1440013117
refactor: Convert ImportStatementDetector to Kotlin
...
com.ichi2.anki.lint.lint.ImportStatementDetector
2022-05-10 18:41:35 -05:00
David Allison
4721645e94
refactor: Rename ImportStatementDetector.java to .kt
...
com.ichi2.anki.lint.lint.ImportStatementDetector
2022-05-10 18:41:35 -05:00
AnkiDroid Translations
c9c54fa26a
Updated strings from Crowdin
2022-05-10 18:27:07 -05:00
Brayan Oliveira
2d589f2bd0
Fix supportInvalidateOptionsMenu
deprecation ( #11312 )
...
* Fix supportInvalidateOptionsMenu deprecation on CardBrowser.kt
Substituted for equivalent `invalidateOptionsMenu()`
* Fix supportInvalidateOptionsMenu deprecation on AbstractFlashcardViewer.kt
Substituted for equivalent `invalidateOptionsMenu()`
* Fix supportInvalidateOptionsMenu deprecation on DeckPicker.kt
Substituted for equivalent `invalidateOptionsMenu()`
* Fix supportInvalidateOptionsMenu deprecation on CardTemplateEditor.kt
* Fix supportInvalidateOptionsMenu deprecation on MultimediaEditFieldActivity.kt
* Fix supportInvalidateOptionsMenu deprecation on NavigationDrawerActivity.kt
* Remove supportInvalidateOptionsMenu on MyAccount.kt
it doesn't have a options menu to invalidate, so it isn't necessary
2022-05-10 18:26:39 -05:00
Mike Hardy
ae95643f1f
build(deps): Dependency updates 20220510
2022-05-10 18:07:18 -05:00
lukstbit
aaf54cd325
Refactor ArgumentUtils into BundleUtils
2022-05-10 17:51:05 -05:00
David Allison
a8695ef2b5
refactor: convert IssueRegistry to Kotlin
...
com.ichi2.anki.lint.IssueRegistry
2022-05-10 17:30:21 -05:00
David Allison
50c6fb2583
refactor: Rename IssueRegistry.java to .kt
...
com.ichi2.anki.lint.IssueRegistry
2022-05-10 17:30:21 -05:00
David Allison
8e1c904636
refactor: convert PrintStackTraceUsage to Kotlin
...
com.ichi2.anki.lint.rules.PrintStackTraceUsage
Moved the companion object to the top of the class to keep the diff clean
2022-05-10 17:17:12 -05:00
David Allison
fc74fb933e
refactor: Rename PrintStackTraceUsage.java to .kt
...
com.ichi2.anki.lint.rules.PrintStackTraceUsage
2022-05-10 17:17:12 -05:00
David Allison
99986d776b
refactor: convert PreferIsEmptyOverSizeCheck to Kotlin
...
com.ichi2.anki.lint.rules.PreferIsEmptyOverSizeCheck
Moved the companion object to the top of the class to keep the diff clean
2022-05-10 17:01:11 -05:00
David Allison
27dbe3147b
refactor: Rename PreferIsEmptyOverSizeCheck.java to .kt
...
com.ichi2.anki.lint.rules.PreferIsEmptyOverSizeCheck
2022-05-10 17:01:11 -05:00
David Allison
b1c2241e4b
refactor: convert NonPublicNonStaticJavaFieldDetector to Kotlin
...
com.ichi2.anki.lint.rules.NonPublicNonStaticJavaFieldDetector
Moved the companion object to the top of the class to keep the diff clean
2022-05-10 16:40:41 -05:00
David Allison
8d2564a2d1
refactor: Rename NonPublicNonStaticJavaFieldDetector.java to .kt
...
com.ichi2.anki.lint.rules.NonPublicNonStaticJavaFieldDetector
2022-05-10 16:40:41 -05:00
David Allison
44abac52fb
refactor: convert InconsistentAnnotationUsage to Kotlin
...
com.ichi2.anki.lint.rules.InconsistentAnnotationUsage
Moved the companion object to the top of the class to keep the diff clean
2022-05-10 16:22:58 -05:00
David Allison
b89d287896
refactor: Rename InconsistentAnnotationUsage.java to .kt
...
com.ichi2.anki.lint.rules.InconsistentAnnotationUsage
2022-05-10 16:22:58 -05:00
David Allison
062dc97f4d
refactor: convert FixedPreferencesTitleLength to Kotlin
...
com.ichi2.anki.lint.rules.FixedPreferencesTitleLength
Moved the companion object to the top of the class to keep the diff clean
2022-05-10 16:14:05 -05:00
David Allison
c1475cd761
refactor: Rename FixedPreferencesTitleLength.java to .kt
...
com.ichi2.anki.lint.rules.FixedPreferencesTitleLength
2022-05-10 16:14:05 -05:00
David Allison
6514a045f7
refactor: convert DirectToastMakeTextUsage to Kotlin
...
com.ichi2.anki.lint.rules.DirectToastMakeTextUsage
Moved the companion object to the top of the class to keep the diff clean
2022-05-10 15:51:28 -05:00
David Allison
d28ccc318e
refactor: Rename DirectToastMakeTextUsage.java to .kt
...
com.ichi2.anki.lint.rules.DirectToastMakeTextUsage
2022-05-10 15:51:28 -05:00
David Allison
c9bdc4b8e9
refactor: convert DirectSystemCurrentTimeMillisUsage to Kotlin
...
com.ichi2.anki.lint.rules.DirectSystemCurrentTimeMillisUsage
Moved the companion object to the top of the class to keep the diff clean
2022-05-10 15:42:27 -05:00
David Allison
5da406f381
refactor: Rename DirectSystemCurrentTimeMillisUsage.java to .kt
...
com.ichi2.anki.lint.rules.DirectSystemCurrentTimeMillisUsage
2022-05-10 15:42:27 -05:00
David Allison
6d42573189
refactor: convert DirectSnackbarMakeUsage to Kotlin
...
com.ichi2.anki.lint.rules.DirectSnackbarMakeUsage
Moved the companion object to the top of the class to keep the diff clean
2022-05-10 15:34:23 -05:00
David Allison
d84360ccbc
refactor: Rename DirectSnackbarMakeUsage.java to .kt
...
com.ichi2.anki.lint.rules.DirectSnackbarMakeUsage
2022-05-10 15:34:23 -05:00
Jatin887
43ac8d071c
[KotlinCleanup] TranslationActivity.kt
2022-05-10 15:19:04 -05:00
David Allison
efc9bf6d0c
refactor: Convert MultimediaEditFieldActivity to Kotlin
...
com.ichi2.anki.multimediacard.activity.MultimediaEditFieldActivity
2022-05-10 15:00:39 -05:00
David Allison
832e932592
refactor: Rename MultimediaEditFieldActivity.java to .kt
...
com.ichi2.anki.multimediacard.activity.MultimediaEditFieldActivity
2022-05-10 15:00:39 -05:00
Mike Hardy
e262766700
test(ci): add tight timeout to gradle setup setup
...
Fixes #11301
2022-05-10 20:26:22 +01:00
David Allison
d392cda3d4
fix: Lint handling of CDATA elements
...
lint 30.2.0 auto-converts XML text nodes to CDATA
This uncovered a few bugs in our lint checks where we did not check
CDATA nodes
Unblocks 11298
2022-05-10 13:29:06 -05:00
Prince kushwaha
d717a46c6e
Migrate TokenizerTest.java to Kotlin
2022-05-10 10:58:50 -05:00
Prince kushwaha
4f3a8715fc
Rename TokenizerTest.java to TokenizerTest.kt
2022-05-10 10:58:50 -05:00
dorrin-sot
4a24fc0228
fix: Overflow Icon Color Change on Config Change (Orientation Change) ( #11061 )
2022-05-10 10:54:39 -05:00
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