diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index a0f9b2e7..cee64988 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -88,6 +88,11 @@ android:label="@string/customize_colors" android:parentActivityName=".activities.SettingsActivity"/> + + startAboutActivity(R.string.app_name, LICENSE_KOTLIN or LICENSE_GLIDE or LICENSE_LEAK_CANARY, BuildConfig.VERSION_NAME) + R.id.about -> launchAbout() else -> super.onOptionsItemSelected(item) } return true @@ -74,6 +75,14 @@ class SettingsActivity : SimpleActivity() { } } + private fun launchAbout() { + val faqItems = arrayListOf( + FAQItem(R.string.faq_2_title_commons, R.string.faq_2_text_commons) + ) + + startAboutActivity(R.string.app_name, LICENSE_KOTLIN or LICENSE_GLIDE or LICENSE_LEAK_CANARY, BuildConfig.VERSION_NAME, faqItems) + } + private fun getLastPart(path: String): String { val humanized = humanizePath(path) return humanized.substringAfterLast("/", humanized)