-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handle 'Support older Anki Versions' when exporting #17536
Comments
This can be implemented in the following file Steps1) remove
|
fun Collection.exportAnkiPackage( | |
outPath: String, | |
withScheduling: Boolean, | |
withDeckConfigs: Boolean, | |
withMedia: Boolean, | |
limit: ExportLimit, | |
legacy: Boolean = true |
Anki-Android/AnkiDroid/src/main/java/com/ichi2/libanki/BackendImportExport.kt
Lines 83 to 87 in 14813c1
fun Collection.exportCollectionPackage( | |
outPath: String, | |
includeMedia: Boolean, | |
legacy: Boolean = true | |
) { |
2) Add a Checkbox to obtain the user-selected value in the Fragment
Use TR.
to obtain the translated string which Anki Desktop uses
Only show the checkbox when either collection/deck exports are selected
3) Ensure the default user-selected value is false
for both apkg
and colpkg
4) Add appropriate unit tests
Suggestions:
- Checkbox is only available on two selections
- Checkbox defaults to false
- Checkbox value is provided to the correct export functions (true/false)
- Reference: Update to work with desktop 2.1.54 code #11644 => b5829f6
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Hi I'd like to work on this |
Ok some help with this if possible,
|
Cool got it. |
@david-allison I'm pretty much done implementing the feature except for the unit Tests, I'll have to create a new Unit test file since ExportDialogFragment does not have unit Tests yet. Is it fine to put a @NeedsTest decorator and push in a separate PR? |
Sure! Alternately, you can create the test file in the PR |
Sure! Got some other work for tomorrow, so might not be able to get to it immediately, but wanted something out so I can get feedback. |
No rush! Your time is greatly appreciated |
This bug report is crossposted from Anking repo to Ankidroid
The text was updated successfully, but these errors were encountered: