diff --git a/app/src/main/java/icu/nullptr/hidemyapplist/ui/fragment/HomeFragment.kt b/app/src/main/java/icu/nullptr/hidemyapplist/ui/fragment/HomeFragment.kt index d387cb05..fb8b99a2 100644 --- a/app/src/main/java/icu/nullptr/hidemyapplist/ui/fragment/HomeFragment.kt +++ b/app/src/main/java/icu/nullptr/hidemyapplist/ui/fragment/HomeFragment.kt @@ -143,7 +143,8 @@ class HomeFragment : Fragment(R.layout.fragment_home) { } if (hmaApp.isHooked) { binding.moduleStatusIcon.setImageResource(R.drawable.outline_done_all_24) - binding.moduleStatus.text = String.format(getString(R.string.home_xposed_activated), BuildConfig.VERSION_NAME, BuildConfig.VERSION_CODE) + val versionNameSimple = BuildConfig.VERSION_NAME.substringBefore(".r") + binding.moduleStatus.text = String.format(getString(R.string.home_xposed_activated), versionNameSimple, BuildConfig.VERSION_CODE) } else { binding.moduleStatusIcon.setImageResource(R.drawable.outline_extension_off_24) binding.moduleStatus.setText(R.string.home_xposed_not_activated)