improved showing of history items
This commit is contained in:
@@ -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("@")
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user