adding some crashfixes
This commit is contained in:
parent
521731ec2c
commit
64011e1083
2 changed files with 9 additions and 1 deletions
|
|
@ -491,7 +491,11 @@ fun Context.deleteMessage(id: Int, isMMS: Boolean) {
|
|||
val uri = if (isMMS) Mms.CONTENT_URI else Sms.CONTENT_URI
|
||||
val selection = "${Sms._ID} = ?"
|
||||
val selectionArgs = arrayOf(id.toString())
|
||||
contentResolver.delete(uri, selection, selectionArgs)
|
||||
try {
|
||||
contentResolver.delete(uri, selection, selectionArgs)
|
||||
} catch (e: Exception) {
|
||||
showErrorToast(e)
|
||||
}
|
||||
}
|
||||
|
||||
fun Context.markMessageRead(id: Int, isMMS: Boolean) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue