improved showing of history items

This commit is contained in:
Juha Heinanen
2018-03-17 17:21:32 +13:00
parent afb4635af7
commit 0f4ae4ff8b
3 changed files with 26 additions and 13 deletions
@@ -1,7 +1,6 @@
package com.tutpro.baresip
import android.content.Context
import android.content.DialogInterface
import android.support.v7.app.AlertDialog
import android.util.Log
@@ -64,4 +63,15 @@ object Utils {
alertDialog.show()
}
fun uriHostPart(uri: String): String {
return uri.substringAfter("@")
.substringBefore(":")
.substringBefore(";")
.substringBefore(">")
}
fun uriUserPart(uri: String): String {
return uri.substringAfter(":").substringBefore("@")
}
}