From 2ed3d5da54e69d2977638676b6b69a91614b45f9 Mon Sep 17 00:00:00 2001 From: Minecon724 Date: Fri, 2 Aug 2024 14:46:18 +0200 Subject: [PATCH] move a line --- .../eu/m724/vastapp/activity/dashboard/DashboardViewModel.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/m724/vastapp/activity/dashboard/DashboardViewModel.kt b/app/src/main/java/eu/m724/vastapp/activity/dashboard/DashboardViewModel.kt index ea49b0b..1701f1f 100644 --- a/app/src/main/java/eu/m724/vastapp/activity/dashboard/DashboardViewModel.kt +++ b/app/src/main/java/eu/m724/vastapp/activity/dashboard/DashboardViewModel.kt @@ -99,7 +99,6 @@ class DashboardViewModel( // TODO I don't like this function especially the last line } - @SuppressLint("SdCardPath") fun sshButtonClick(activity: ComponentActivity, rentedInstance: RentedInstance) { val sshCommand = "ssh -p ${rentedInstance.sshProxyPort} root@${rentedInstance.sshProxyHost}" val context = activity.applicationContext @@ -137,6 +136,7 @@ class DashboardViewModel( Opener.copyToClipboard(text, "ssh command", context) } + @SuppressLint("SdCardPath") private fun startTermux(context: Context, arguments: Array) { val noSshIntent = Intent(context, TermuxSshActivity::class.java) val pendingIntent = PendingIntent.getActivity(