mirror of
https://github.com/SimpleMobileTools/Simple-SMS-Messenger.git
synced 2025-01-31 01:29:30 +01:00
Validate datetime before scheduling message
This commit is contained in:
parent
8142489d87
commit
3fa03b2998
@ -956,6 +956,12 @@ class ThreadActivity : SimpleActivity() {
|
||||
}
|
||||
|
||||
private fun sendScheduledMessage(text: String, subscriptionId: Int) {
|
||||
if (scheduledDateTime.millis < System.currentTimeMillis() + 1000L) {
|
||||
toast(R.string.must_pick_time_in_the_future)
|
||||
launchScheduleSendDialog(scheduledDateTime)
|
||||
return
|
||||
}
|
||||
|
||||
refreshedSinceSent = false
|
||||
try {
|
||||
ensureBackgroundThread {
|
||||
|
Loading…
x
Reference in New Issue
Block a user