move a line
This commit is contained in:
parent
b8c7a62e58
commit
2ed3d5da54
1 changed files with 1 additions and 1 deletions
|
@ -99,7 +99,6 @@ class DashboardViewModel(
|
||||||
// TODO I don't like this function especially the last line
|
// TODO I don't like this function especially the last line
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressLint("SdCardPath")
|
|
||||||
fun sshButtonClick(activity: ComponentActivity, rentedInstance: RentedInstance) {
|
fun sshButtonClick(activity: ComponentActivity, rentedInstance: RentedInstance) {
|
||||||
val sshCommand = "ssh -p ${rentedInstance.sshProxyPort} root@${rentedInstance.sshProxyHost}"
|
val sshCommand = "ssh -p ${rentedInstance.sshProxyPort} root@${rentedInstance.sshProxyHost}"
|
||||||
val context = activity.applicationContext
|
val context = activity.applicationContext
|
||||||
|
@ -137,6 +136,7 @@ class DashboardViewModel(
|
||||||
Opener.copyToClipboard(text, "ssh command", context)
|
Opener.copyToClipboard(text, "ssh command", context)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressLint("SdCardPath")
|
||||||
private fun startTermux(context: Context, arguments: Array<String>) {
|
private fun startTermux(context: Context, arguments: Array<String>) {
|
||||||
val noSshIntent = Intent(context, TermuxSshActivity::class.java)
|
val noSshIntent = Intent(context, TermuxSshActivity::class.java)
|
||||||
val pendingIntent = PendingIntent.getActivity(
|
val pendingIntent = PendingIntent.getActivity(
|
||||||
|
|
Loading…
Reference in a new issue