Skip to content

Commit

Permalink
Simplify version name display
Browse files Browse the repository at this point in the history
  • Loading branch information
Dr-TSNG committed Aug 25, 2022
1 parent 2015915 commit 9990f13
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9990f13

Please sign in to comment.