From 75f75a7fc6e5641c00d8b4368041bde231a924c2 Mon Sep 17 00:00:00 2001 From: Nik Clayton Date: Tue, 6 Feb 2024 12:57:50 +0100 Subject: [PATCH] fix: Use string resource instead of hardcoded "About" (#421) --- .../src/main/kotlin/app/pachli/feature/about/AboutActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/feature/about/src/main/kotlin/app/pachli/feature/about/AboutActivity.kt b/feature/about/src/main/kotlin/app/pachli/feature/about/AboutActivity.kt index 867b0083a..547f28f1b 100644 --- a/feature/about/src/main/kotlin/app/pachli/feature/about/AboutActivity.kt +++ b/feature/about/src/main/kotlin/app/pachli/feature/about/AboutActivity.kt @@ -90,7 +90,7 @@ class AboutFragmentAdapter(val activity: FragmentActivity) : FragmentStateAdapte fun title(position: Int): CharSequence { return when (position) { - 0 -> "About" + 0 -> activity.getString(R.string.about_title_activity) 1 -> activity.getString(R.string.title_licenses) 2 -> activity.getString(R.string.about_privacy_policy) else -> throw IllegalStateException()