Fixed some lint warnings
This commit is contained in:
@@ -241,7 +241,7 @@ class MainActivity : ComponentActivity() {
|
|||||||
|
|
||||||
private val showSelectItemDialog = mutableStateOf(false)
|
private val showSelectItemDialog = mutableStateOf(false)
|
||||||
val items = mutableStateOf(listOf<String>())
|
val items = mutableStateOf(listOf<String>())
|
||||||
val itemAction = mutableStateOf<(Int) -> Unit>({ index -> {} })
|
private val itemAction = mutableStateOf<(Int) -> Unit>({ _ -> run {} })
|
||||||
|
|
||||||
private val backInvokedCallback = OnBackInvokedCallback {
|
private val backInvokedCallback = OnBackInvokedCallback {
|
||||||
moveTaskToBack(true)
|
moveTaskToBack(true)
|
||||||
@@ -1479,10 +1479,10 @@ class MainActivity : ComponentActivity() {
|
|||||||
if (uris.size > 1) {
|
if (uris.size > 1) {
|
||||||
items.value = uris
|
items.value = uris
|
||||||
itemAction.value = { index ->
|
itemAction.value = { index ->
|
||||||
val uriText = uris[index]
|
val uri = uris[index]
|
||||||
transfer(
|
transfer(
|
||||||
ua,
|
ua,
|
||||||
if (Utils.isTelNumber(uriText)) "tel:$uriText" else uriText,
|
if (Utils.isTelNumber(uri)) "tel:$uri" else uri,
|
||||||
!blindChecked.value
|
!blindChecked.value
|
||||||
)
|
)
|
||||||
showSelectItemDialog.value = false
|
showSelectItemDialog.value = false
|
||||||
@@ -1642,7 +1642,7 @@ class MainActivity : ComponentActivity() {
|
|||||||
if (Utils.checkPermissions(ctx, arrayOf(RECORD_AUDIO))) {
|
if (Utils.checkPermissions(ctx, arrayOf(RECORD_AUDIO))) {
|
||||||
if (Call.inCall())
|
if (Call.inCall())
|
||||||
return
|
return
|
||||||
var uriText = callUri.value.trim()
|
val uriText = callUri.value.trim()
|
||||||
if (uriText.isNotEmpty()) {
|
if (uriText.isNotEmpty()) {
|
||||||
val uris = Contact.contactUris(uriText)
|
val uris = Contact.contactUris(uriText)
|
||||||
if (uris.isEmpty())
|
if (uris.isEmpty())
|
||||||
|
|||||||
Reference in New Issue
Block a user