added feature to speak messages aloud via system TTS service. added "Speak" option to message swipe left/right options. swipe inbox message to read aloud. swipe again to interrupt. added widget that speaks unseen messages and marks messages as seen after reading them. needs string translations for settings_swipe_actions (new item "Speak") and speak_no_messages and speak_unseen_messages

This commit is contained in:
gavine99
2025-01-05 20:33:05 +11:00
parent 5ca983172e
commit 6eacfe4610
17 changed files with 306 additions and 13 deletions
@@ -48,6 +48,12 @@ interface ConversationRepository {
fun getConversation(threadId: Long): Conversation?
fun getUnseenIds(archived: Boolean = false): List<Long>
fun getUnreadIds(archived: Boolean = false): List<Long>
fun getConversationAndLastSenderContactName(threadId: Long): Pair<Conversation?, String?>?
/**
* Returns all conversations with an id in [threadIds]
*/
@@ -47,7 +47,6 @@ class Preferences @Inject constructor(
const val TEXT_SIZE_NORMAL = 1
const val TEXT_SIZE_LARGE = 2
const val TEXT_SIZE_LARGER = 3
const val TEXT_SIZE_SUPER = 4
const val NOTIFICATION_PREVIEWS_ALL = 0
const val NOTIFICATION_PREVIEWS_NAME = 1
@@ -73,6 +72,7 @@ class Preferences @Inject constructor(
const val SWIPE_ACTION_CALL = 4
const val SWIPE_ACTION_READ = 5
const val SWIPE_ACTION_UNREAD = 6
const val SWIPE_ACTION_SPEAK = 7
const val BLOCKING_MANAGER_QKSMS = 0
const val BLOCKING_MANAGER_CC = 1