trigger a message refresh when the date/time format changes

This commit is contained in:
tibbi 2020-04-05 15:04:26 +02:00
parent 3cf6ce2e37
commit 049b8f9877
1 changed files with 5 additions and 1 deletions

View File

@ -8,7 +8,9 @@ import com.simplemobiletools.commons.extensions.launchPurchaseThankYouIntent
import com.simplemobiletools.commons.extensions.updateTextColors
import com.simplemobiletools.smsmessenger.R
import com.simplemobiletools.smsmessenger.extensions.config
import com.simplemobiletools.smsmessenger.models.Events
import kotlinx.android.synthetic.main.activity_settings.*
import org.greenrobot.eventbus.EventBus
import java.util.*
class SettingsActivity : SimpleActivity() {
@ -53,7 +55,9 @@ class SettingsActivity : SimpleActivity() {
private fun setupChangeDateTimeFormat() {
settings_change_date_time_format_holder.setOnClickListener {
ChangeDateTimeFormatDialog(this) {}
ChangeDateTimeFormatDialog(this) {
EventBus.getDefault().post(Events.RefreshMessages())
}
}
}
}