diff --git a/app/app/src/main/java/com/github/livingwithhippos/unchained/base/MainActivity.kt b/app/app/src/main/java/com/github/livingwithhippos/unchained/base/MainActivity.kt index 4f94af13..8e16f9a9 100644 --- a/app/app/src/main/java/com/github/livingwithhippos/unchained/base/MainActivity.kt +++ b/app/app/src/main/java/com/github/livingwithhippos/unchained/base/MainActivity.kt @@ -228,15 +228,6 @@ class MainActivity : AppCompatActivity() { openSettings() true } - R.id.about -> { - LibsBuilder() - .withAboutAppName(getString(R.string.app_name)) - .withAboutIconShown(true) - .withAboutVersionShown(true) - .withActivityTitle(getString(R.string.about)) - .start(this@MainActivity) - true - } else -> false } } diff --git a/app/app/src/main/java/com/github/livingwithhippos/unchained/settings/view/SettingsFragment.kt b/app/app/src/main/java/com/github/livingwithhippos/unchained/settings/view/SettingsFragment.kt index 02a72195..566f06ad 100644 --- a/app/app/src/main/java/com/github/livingwithhippos/unchained/settings/view/SettingsFragment.kt +++ b/app/app/src/main/java/com/github/livingwithhippos/unchained/settings/view/SettingsFragment.kt @@ -24,6 +24,7 @@ import com.github.livingwithhippos.unchained.utilities.GPLV3_URL import com.github.livingwithhippos.unchained.utilities.PLUGINS_URL import com.github.livingwithhippos.unchained.utilities.extension.openExternalWebPage import com.github.livingwithhippos.unchained.utilities.extension.showToast +import com.mikepenz.aboutlibraries.LibsBuilder import dagger.hilt.android.AndroidEntryPoint import timber.log.Timber import javax.inject.Inject @@ -93,6 +94,16 @@ class SettingsFragment : PreferenceFragmentCompat() { it.keyListener = DigitsKeyListener.getInstance("0123456789") } + findPreference("about")?.setOnPreferenceClickListener { + LibsBuilder() + .withAboutAppName(getString(R.string.app_name)) + .withAboutIconShown(true) + .withAboutVersionShown(true) + .withActivityTitle(getString(R.string.about)) + .start(requireContext()) + true + } + setupKodi() setupVersion() diff --git a/app/app/src/main/res/menu/top_app_bar.xml b/app/app/src/main/res/menu/top_app_bar.xml index 1bebe1d2..18b09930 100644 --- a/app/app/src/main/res/menu/top_app_bar.xml +++ b/app/app/src/main/res/menu/top_app_bar.xml @@ -8,12 +8,4 @@ android:title="@string/settings" android:orderInCategory="99" app:showAsAction="never" /> - - - \ No newline at end of file diff --git a/app/app/src/main/res/xml/settings.xml b/app/app/src/main/res/xml/settings.xml index cc971979..e18650be 100644 --- a/app/app/src/main/res/xml/settings.xml +++ b/app/app/src/main/res/xml/settings.xml @@ -230,6 +230,11 @@ app:summary="@string/feedback_summary" app:title="@string/feedback_title" /> + +