0
0
Fork 0
mirror of https://github.com/YTVanced/VancedManager synced 2024-11-23 19:55:11 +00:00

Fixed string literal duplication

This commit is contained in:
Tornike Khintibidze 2020-07-03 22:34:51 +04:00 committed by GitHub
parent c61acf01f6
commit 465bca4b00
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -64,15 +64,17 @@ class HomeFragment : Home() {
view.findViewById<MaterialCardView>(R.id.vanced_card).setOnLongClickListener{
val clip = activity?.getSystemService(Context.CLIPBOARD_SERVICE) as ClipboardManager
clip.setPrimaryClip(ClipData.newPlainText("vanced", viewModel.vancedInstalledVersion.value))
versionToast("Vanced")
val vanced = "Vanced"
clip.setPrimaryClip(ClipData.newPlainText(vanced, viewModel.vancedInstalledVersion.value))
versionToast(vanced)
true
}
view.findViewById<MaterialCardView>(R.id.microg_card).setOnLongClickListener{
val clip = activity?.getSystemService(Context.CLIPBOARD_SERVICE) as ClipboardManager
clip.setPrimaryClip(ClipData.newPlainText("microg", viewModel.microgInstalledVersion.value))
versionToast("MicroG")
val microg = "MicroG"
clip.setPrimaryClip(ClipData.newPlainText(microg, viewModel.microgInstalledVersion.value))
versionToast(microg)
true
}
}