fix a glitch at setting the received sms time in the future
This commit is contained in:
parent
4512a9a8ff
commit
6db8d2a2d3
1 changed files with 1 additions and 1 deletions
|
|
@ -25,7 +25,7 @@ class SmsReceiver : BroadcastReceiver() {
|
||||||
address = it.originatingAddress ?: ""
|
address = it.originatingAddress ?: ""
|
||||||
subject = it.pseudoSubject
|
subject = it.pseudoSubject
|
||||||
body += it.messageBody
|
body += it.messageBody
|
||||||
date = it.timestampMillis
|
date = Math.min(it.timestampMillis, System.currentTimeMillis())
|
||||||
threadId = context.getThreadId(address)
|
threadId = context.getThreadId(address)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue