Add setting to hide message content in notification

This commit is contained in:
tanvirahmod 2021-01-05 17:54:56 +06:00
parent 7cb605ce58
commit 17c300be7e
6 changed files with 98 additions and 14 deletions

View file

@ -12,6 +12,7 @@ const val THREAD_ATTACHMENT_URIS = "thread_attachment_uris"
const val USE_SIM_ID_PREFIX = "use_sim_id_"
const val NOTIFICATION_CHANNEL = "simple_sms_messenger"
const val SHOW_CHARACTER_COUNTER = "show_character_counter"
const val CONFIGURATION_NOTIFICATION_SETTING = "configuration_notification_setting"
private const val PATH = "com.simplemobiletools.smsmessenger.action."
const val MARK_AS_READ = PATH + "mark_as_read"
@ -25,6 +26,11 @@ const val THREAD_SENT_MESSAGE_ERROR = 4
const val THREAD_SENT_MESSAGE_SUCCESS = 5
const val THREAD_SENT_MESSAGE_SENDING = 6
// configure notification setting constants
const val CONFIGURE_NAME_AND_MESSAGE = 1
const val CONFIGURE_NAME = 2
const val CONFIGURE_NO_DETAILS = 3
fun refreshMessages() {
EventBus.getDefault().post(Events.RefreshMessages())
}