Skip to content

Commit

Permalink
Add a stronger warning before changing to the new backend
Browse files Browse the repository at this point in the history
  • Loading branch information
BrayanDSO committed Aug 11, 2022
1 parent 793abec commit 8bc98d6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@ class AdvancedSettingsFragment : SettingsFragment() {
setOnPreferenceChangeListener { newValue ->
if (newValue == true) {
confirmExperimentalChange(
R.string.use_rust_backend_title, R.string.use_rust_backend_summary,
R.string.use_rust_backend_title,
R.string.use_rust_backend_warning,
onCancel = { isChecked = false },
onConfirm = {
BackendFactory.defaultLegacySchema = false
Expand Down
1 change: 1 addition & 0 deletions AnkiDroid/src/main/res/values/10-preferences.xml
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,7 @@ this formatter is used if the bind only applies to both the question and the ans
<string name="experimental_pref_confirmation" maxLength="41">Enable ‘%s’</string>
<string name="use_rust_backend_title" maxLength="41">Use the new backend</string>
<string name="use_rust_backend_summary">Enables newer Anki features, such as the v3 scheduler\nUNSTABLE. Do not use on a collection you care about. NOT reverted on app close</string>
<string name="use_rust_backend_warning">There is a chance this could corrupt your installation completely, requiring app uninstall and deletion of AnkiDroid's folder, and has a chance of propagating corruption via sync to AnkiWeb. We welcome the testing, but please make sure you have a valid non-AnkiWeb backup.</string>

<!-- Developer options -->
<string name="pref_cat_dev_options" maxLength="41">Developer options</string>
Expand Down

0 comments on commit 8bc98d6

Please sign in to comment.