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

14554 Commits

Author SHA1 Message Date
Aayush Solanki
d392498050
fix(email): workaround non-clickable links in share deck email (#10337)
* e-mail message edited and links added

Co-authored-by: David Allison <62114487+david-allison@users.noreply.github.com>
2022-02-14 07:57:09 -05:00
AnkiDroid Translations
97100149b7 Updated strings from Crowdin 2022-02-14 07:38:13 -05:00
Brayan Oliveira
d5c72c6c29 set preferences theme 2022-02-13 23:46:19 -05:00
David Allison
9dc2ecee95 remove: Volume Up/Down Gesture Option (replaced)
These are now handled with the keymap in "Settings - Controls"

Ref: dc6459f84b

removes now unused strings:
gestures_volume_down
gestures_volume_up

Fixes 10336
2022-02-13 15:10:33 -05:00
David Allison
2f90dbd6f6 KotlinCleanup: BasicMediaClipFieldController
onActivityResult remaining: we send null to the parameter
we want to make non-null in some cases
2022-02-13 14:41:20 -05:00
David Allison
05cbb38483 fix(media-import): Extension detection was broken
We didn't correctly detect the extension
Presumably a Kotlin migration issue.
2022-02-13 14:41:20 -05:00
David Allison
588f5a71b7 rename: BasicAudioClipFieldController => Media
and AudioClipField => MediaClipField

This no longer just accepts audio, video as well

Issue 10315: Import Video Clip
2022-02-13 14:41:20 -05:00
David Allison
36f50c7cc4 feat(media-import): Import Video
Importing only accepts one MIME type, so add a new button for video

We add a new string, as "Library" no longer makes sense

Issue 10315
2022-02-13 14:41:20 -05:00
David Allison
4a53e869fa refactor: generify handleMediaSelection
To help with adding videos in a future commit

Issue 10315
2022-02-13 14:41:20 -05:00
David Allison
27fe37ee21 refactor: allow safe execution of method 2022-02-13 14:41:20 -05:00
David Allison
409d5b2485 refactor: extract method openChooserPrompt 2022-02-13 14:41:20 -05:00
David Allison
87ee885bab Update special field decoration mode 2022-02-13 12:26:47 -05:00
Puranjay Khanijo
c905ddbbeb
Clarified Sync Error Message (#10021)
* clarified media sync msg

This commit adds number of downloaded and uploaded media before the Java error message


Co-authored-by: David Allison <62114487+david-allison-1@users.noreply.github.com>
2022-02-12 17:50:35 +01:00
Akshit Sinha
1b597dfc96 Fixed Typo in KotlinMigrationBrokenEmails 2022-02-12 07:14:07 -05:00
Akshit Sinha
29eb51518a Added a Lint Check for line-break tag issue in kotlin migration 2022-02-12 07:14:07 -05:00
Mike Hardy
2a55fe2638 chore(copyright): add copyright headers to androidTest files 2022-02-11 10:28:13 -05:00
gradle-update-robot
01844357aa Update Gradle Wrapper from 7.3.3 to 7.4.
Signed-off-by: gradle-update-robot <gradle-update-robot@regolo.cc>
2022-02-09 08:35:09 -05:00
puranjayK
96731c927c Migrate BadgeDrawableBuilder to Kotlin 2022-02-09 09:26:19 +01:00
puranjayK
ac46b364d8 Rename .java to .kt 2022-02-09 09:26:19 +01:00
Mike Hardy
9c23396498 Bumped version to 2.16alpha42 2022-02-08 16:38:26 +00:00
Mike Hardy
cc4e5a0be5
Dependency updates 20220208 (#10317)
* Bump lint_version from 30.1.0 to 30.1.1

Bumps `lint_version` from 30.1.0 to 30.1.1.

Updates `lint-api` from 30.1.0 to 30.1.1

Updates `lint` from 30.1.0 to 30.1.1

Updates `lint-tests` from 30.1.0 to 30.1.1

---
updated-dependencies:
- dependency-name: com.android.tools.lint:lint-api
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: com.android.tools.lint:lint
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: com.android.tools.lint:lint-tests
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump gradle from 7.1.0 to 7.1.1

Bumps gradle from 7.1.0 to 7.1.1.

---
updated-dependencies:
- dependency-name: com.android.tools.build:gradle
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-08 11:30:43 -05:00
AnkiDroid Translations
fa85068863 Updated strings from Crowdin 2022-02-08 07:59:43 -05:00
Akshay
1ad753659d [Kotlin Migration] CustomTabActivityHelper 2022-02-06 11:09:53 -05:00
Akshay
3359678588 Renamed CustomTabActivityHelper.java to CustomTabActivityHelper.kt 2022-02-06 11:09:53 -05:00
Akshay
5677a459b6 [Kotlin Migration] BasicTextFieldController 2022-02-06 11:03:34 -05:00
Akshay
2725de8ac4 Renamed BasicTextFieldController.java to BasicTextFieldController.kt 2022-02-06 11:03:34 -05:00
Akshay
beada5a4ce [Kotlin Migration] TranslationActivity 2022-02-06 10:57:12 -05:00
Akshay
b370e1a301 Rename TranslationActivity.java to TranslationActivity.kt 2022-02-06 10:57:12 -05:00
Akshay
2609bb0b41 [Kotlin Migration] AnkiPackageImporter 2022-02-06 10:50:02 -05:00
Akshay
1a916b5797 Renamed AnkiPackageImporter.java to AnkiPackageImporter.kt 2022-02-06 10:50:02 -05:00
codingtosh
f084f6984c [Kotlin Migration] MediaSyncer
package: com.ichi2.libanki.sync
2022-02-05 11:21:24 -05:00
codingtosh
2c7ead0758 Rename MediaSyncer.java to .kt
package: com.ichi2.libanki.sync
2022-02-05 11:21:24 -05:00
Akshay
612e42439c [Kotlin Migration] CompatV23 2022-02-05 10:15:50 -05:00
Akshay
d89e1556e5 Rename Compat23.java to Compat23.kt 2022-02-05 10:15:50 -05:00
Akshay Vilas Jadhav
17d80f9653
[Kotlin Migration] BasicImageFieldControllerTest 2022-02-03 14:23:27 +05:30
krmanik
c34dcdcb1a fix: error when showing toast 2022-02-02 08:20:52 -05:00
codingtosh
52ef757ef3 [Gradle][Ktlint Worker Task] Bump workerMaxHeapSize to 2048m
Task: org.jlleitschuh.gradle.ktlint.worker.KtLintWorkAction

Fixes: https://github.com/ankidroid/Anki-Android/issues/10242
2022-02-01 11:54:18 -05:00
Mike Hardy
fd8e047002 Bumped version to 2.16alpha41 2022-02-01 16:38:20 +00:00
Akshay
2bc64ed43a [Kotlin Migration] CardTest 2022-02-01 11:14:38 -05:00
Akshay
1bc8d9b7a1 Renamed CardTest.java to CardTest.kt 2022-02-01 11:14:38 -05:00
Akshay
93ab582830 [Kotlin Migration] CardTemplateEditorTest 2022-02-01 11:03:57 -05:00
Akshay
a0b1c04178 Renamed CardTemplateEditorTest.java to CardTemplateEditorTest.kt 2022-02-01 11:03:57 -05:00
Akshay
c9ccd64061 [Kotlin Migration] AudioRecorderTest 2022-02-01 10:36:57 -05:00
Akshay
5b7427af74 Renamed AudioRecorderTest.java to AudioRecorderTest.kt 2022-02-01 10:36:57 -05:00
Akshay
be32e5d672 [Kotlin Migration] CardTemplatePreviewer 2022-02-01 10:29:31 -05:00
Akshay
3cdb0e5548 Renamed CardTemplatePreviewer.java to CardTemplatePreviewer.kt 2022-02-01 10:29:31 -05:00
David Allison
9b0296610f
feat(Compat): add deleteFile (#10295)
Use `Files.delete` which provides a useful exception if on V26 or later

https://docs.oracle.com/javase/7/docs/api/java/io/File.html#delete()
https://docs.oracle.com/javase/8/docs/api/java/nio/file/Files.html#delete-java.nio.file.Path-
2022-02-01 10:09:44 -05:00
David Allison
921e772bb7 test: add "editPreferences" helper function
Nicer to read + type than `getPreferences().edit { }`

Currently unused, to be used in scoped storage changes
2022-02-01 09:48:32 -05:00
murugu-21
7ada532c5c
Disable "html_javascript_debugging" for unit/android tests (#10288)
* check junit class
* refactor to adaption util
* refactor with docs

Co-authored-by: David Allison <62114487+david-allison-1@users.noreply.github.com>
2022-02-01 09:27:37 -05:00
Akshay
9376133952 [Kotlin Migration] WidgetStatus 2022-02-01 08:53:18 -05:00