From 6341baa048e19aeee8947ae20951a77c3de0cde5 Mon Sep 17 00:00:00 2001 From: kevinx8 Date: Sat, 4 Jul 2020 00:22:50 +0100 Subject: [PATCH] Revert "Fixed string literal duplication" This reverts commit 465bca4b --- .../com/vanced/manager/ui/fragments/HomeFragment.kt | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/com/vanced/manager/ui/fragments/HomeFragment.kt b/app/src/main/java/com/vanced/manager/ui/fragments/HomeFragment.kt index e99470ee73..aa4e5282c6 100644 --- a/app/src/main/java/com/vanced/manager/ui/fragments/HomeFragment.kt +++ b/app/src/main/java/com/vanced/manager/ui/fragments/HomeFragment.kt @@ -64,17 +64,15 @@ class HomeFragment : Home() { view.findViewById(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(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 } }