adding some crashfixes
This commit is contained in:
parent
953d521e47
commit
d1fe3531e1
5 changed files with 28 additions and 9 deletions
|
|
@ -475,7 +475,11 @@ fun Context.deleteConversation(threadId: Int) {
|
|||
var uri = Sms.CONTENT_URI
|
||||
val selection = "${Sms.THREAD_ID} = ?"
|
||||
val selectionArgs = arrayOf(threadId.toString())
|
||||
contentResolver.delete(uri, selection, selectionArgs)
|
||||
try {
|
||||
contentResolver.delete(uri, selection, selectionArgs)
|
||||
} catch (e: Exception) {
|
||||
showErrorToast(e)
|
||||
}
|
||||
|
||||
uri = Mms.CONTENT_URI
|
||||
contentResolver.delete(uri, selection, selectionArgs)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue