add handling for storing sent messages
This commit is contained in:
parent
420a88c74c
commit
e1f1583b17
6 changed files with 59 additions and 8 deletions
|
|
@ -38,7 +38,9 @@ class SmsReceiver : BroadcastReceiver() {
|
|||
val body = it.messageBody
|
||||
val date = it.timestampMillis
|
||||
val threadId = context.getThreadId(address)
|
||||
context.insertNewSMS(address, subject, body, date, threadId)
|
||||
val type = Telephony.Sms.MESSAGE_TYPE_INBOX
|
||||
val read = 0
|
||||
context.insertNewSMS(address, subject, body, date, read, threadId, type)
|
||||
showNotification(context, address, body, threadId.toInt())
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue