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:
parent
c61acf01f6
commit
465bca4b00
1 changed files with 6 additions and 4 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue