diff --git a/AnkiDroid/src/main/java/com/ichi2/anki/preferences/ReviewerOptionsFragment.kt b/AnkiDroid/src/main/java/com/ichi2/anki/preferences/ReviewerOptionsFragment.kt new file mode 100644 index 000000000000..06618f91212f --- /dev/null +++ b/AnkiDroid/src/main/java/com/ichi2/anki/preferences/ReviewerOptionsFragment.kt @@ -0,0 +1,32 @@ +/* + * Copyright (c) 2024 Brayan Oliveira + * + * This program is free software; you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free Software + * Foundation; either version 3 of the License, or (at your option) any later + * version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT ANY + * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A + * PARTICULAR PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +package com.ichi2.anki.preferences + +import android.os.Bundle +import androidx.preference.PreferenceFragmentCompat +import com.ichi2.anki.R + +/** + * Developer options to test some of the new reviewer settings and features + * + * Not a `SettingsFragment` to avoid boilerplate and sending analytics reports, + * since this is just a temporary screen while the new reviewer is being developed. + */ +class ReviewerOptionsFragment : PreferenceFragmentCompat() { + override fun onCreatePreferences(savedInstanceState: Bundle?, rootKey: String?) { + addPreferencesFromResource(R.xml.preferences_reviewer) + } +} diff --git a/AnkiDroid/src/main/res/values/preferences.xml b/AnkiDroid/src/main/res/values/preferences.xml index e3e62a675ff2..614ba40e8e2d 100644 --- a/AnkiDroid/src/main/res/values/preferences.xml +++ b/AnkiDroid/src/main/res/values/preferences.xml @@ -177,6 +177,7 @@ debug_lock_database new_congrats_screen newReviewer + newReviewerOptions showOnboarding resetOnboarding devOptionsEnabledByUser diff --git a/AnkiDroid/src/main/res/xml/preferences_dev_options.xml b/AnkiDroid/src/main/res/xml/preferences_dev_options.xml index f1249b234cbe..0d7f122643e8 100644 --- a/AnkiDroid/src/main/res/xml/preferences_dev_options.xml +++ b/AnkiDroid/src/main/res/xml/preferences_dev_options.xml @@ -48,6 +48,11 @@ android:title="New reviewer" android:key="@string/new_reviewer_pref_key" android:defaultValue="false"/> + + + + \ No newline at end of file