adding a helper function for refreshing the messages
This commit is contained in:
parent
049b8f9877
commit
251eca8823
5 changed files with 19 additions and 16 deletions
|
|
@ -1,5 +1,8 @@
|
|||
package com.simplemobiletools.smsmessenger.helpers
|
||||
|
||||
import com.simplemobiletools.smsmessenger.models.Events
|
||||
import org.greenrobot.eventbus.EventBus
|
||||
|
||||
const val THREAD_ID = "thread_id"
|
||||
const val THREAD_NAME = "thread_name"
|
||||
const val THREAD_NUMBER = "thread_number"
|
||||
|
|
@ -9,3 +12,7 @@ const val THREAD_DATE_TIME = 1
|
|||
const val THREAD_RECEIVED_MESSAGE = 2
|
||||
const val THREAD_SENT_MESSAGE = 3
|
||||
const val THREAD_SENT_MESSAGE_ERROR = 4
|
||||
|
||||
fun refreshMessages() {
|
||||
EventBus.getDefault().post(Events.RefreshMessages())
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue