move a line

This commit is contained in:
Minecon724 2024-08-02 14:46:18 +02:00
parent b8c7a62e58
commit 2ed3d5da54
Signed by: Minecon724
GPG key ID: 3CCC4D267742C8E8

View file

@ -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<String>) {
val noSshIntent = Intent(context, TermuxSshActivity::class.java)
val pendingIntent = PendingIntent.getActivity(