From f72114b0e638fd2d5a5d2aaa8480e87fa6b31096 Mon Sep 17 00:00:00 2001 From: lukstbit <52494258+lukstbit@users.noreply.github.com> Date: Thu, 24 Oct 2024 12:40:34 +0300 Subject: [PATCH] Add FSRS library version information to about settings screen --- .idea/dictionaries/anki.xml | 1 + .../java/com/ichi2/anki/preferences/AboutFragment.kt | 3 +++ AnkiDroid/src/main/res/layout/about_layout.xml | 9 ++++++++- 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.idea/dictionaries/anki.xml b/.idea/dictionaries/anki.xml index 981f71fcc504..ce0c3c8714bc 100644 --- a/.idea/dictionaries/anki.xml +++ b/.idea/dictionaries/anki.xml @@ -47,6 +47,7 @@ fname fnames frac + fsrs fullsync gendeck genrem diff --git a/AnkiDroid/src/main/java/com/ichi2/anki/preferences/AboutFragment.kt b/AnkiDroid/src/main/java/com/ichi2/anki/preferences/AboutFragment.kt index 3ea738a9e45e..e2bc8259f94f 100644 --- a/AnkiDroid/src/main/java/com/ichi2/anki/preferences/AboutFragment.kt +++ b/AnkiDroid/src/main/java/com/ichi2/anki/preferences/AboutFragment.kt @@ -62,6 +62,9 @@ class AboutFragment : Fragment(R.layout.about_layout) { view.findViewById(R.id.about_backend).text = "(anki " + BackendBuildConfig.ANKI_DESKTOP_VERSION + " / " + BackendBuildConfig.ANKI_COMMIT_HASH.subSequence(0, 8) + ")" + // FSRS version text + view.findViewById(R.id.about_fsrs).text = "(FSRS ${BackendBuildConfig.FSRS_VERSION})" + // Logo secret view.findViewById(R.id.about_app_logo) .setOnClickListener(DevOptionsSecretClickListener(requireActivity() as Preferences)) diff --git a/AnkiDroid/src/main/res/layout/about_layout.xml b/AnkiDroid/src/main/res/layout/about_layout.xml index 65377c225853..840650a27807 100644 --- a/AnkiDroid/src/main/res/layout/about_layout.xml +++ b/AnkiDroid/src/main/res/layout/about_layout.xml @@ -63,9 +63,16 @@ style="?android:textAppearanceSmall" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginBottom="14dp" tools:text="(anki 23.10.1 / be74babb0)" /> + +