Skip to content
This repository has been archived by the owner on Mar 15, 2022. It is now read-only.

Commit

Permalink
Revert "Fixed string literal duplication"
Browse files Browse the repository at this point in the history
This reverts commit 465bca4
  • Loading branch information
KevinX8 committed Jul 3, 2020
1 parent 5db3e88 commit 6341baa
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,17 +64,15 @@ class HomeFragment : Home() {

view.findViewById<MaterialCardView>(R.id.vanced_card).setOnLongClickListener{
val clip = activity?.getSystemService(Context.CLIPBOARD_SERVICE) as ClipboardManager
val vanced = "Vanced"
clip.setPrimaryClip(ClipData.newPlainText(vanced, viewModel.vancedInstalledVersion.value))
versionToast(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
val microg = "MicroG"
clip.setPrimaryClip(ClipData.newPlainText(microg, viewModel.microgInstalledVersion.value))
versionToast(microg)
clip.setPrimaryClip(ClipData.newPlainText("microg", viewModel.microgInstalledVersion.value))
versionToast("MicroG")
true
}
}
Expand Down

0 comments on commit 6341baa

Please sign in to comment.