limit bubble display of text to 5000 chars.

add instruction status message when bubble char limit exceeded.
add share text feature.
make copy and share text menu options only available when there is text in selected messages.
new FileProvider to share messages text files out of app's cache dir.
add message subject to copy messages text feature.
a lot of refactoring of MessagesAdapter class.
add new FileUtils class.
convert file logging to use new FileUtils class.
change MediaRecorder to use new FileUtils class.
housekeeping worker now cleans messages text cache files.
housekeeping worker now checks cache files older than 2 hours before deleting.
This commit is contained in:
gavine99
2025-03-26 17:28:34 +11:00
parent 669932ef0e
commit 8356008b88
18 changed files with 707 additions and 340 deletions
@@ -142,6 +142,7 @@
<string name="compose_hint">Write a message…</string>
<string name="compose_no_valid_recipients">Can\'t send to other participants</string>
<string name="compose_menu_copy">Copy text</string>
<string name="compose_menu_share">Share text</string>
<string name="compose_menu_forward">Forward</string>
<string name="compose_menu_show_status">Show status</string>
<string name="compose_menu_delete">Delete</string>
@@ -189,6 +190,7 @@
<string name="message_status_sending">Sending…</string>
<string name="message_status_delivered">Delivered %s</string>
<string name="message_status_failed">Failed to send. Tap to try again</string>
<string name="message_body_too_long_to_display">⚠ Message is long. Copy or Save for the full text</string>
<string name="info_title">Details</string>
<string name="info_copied_address">Address copied</string>
@@ -570,4 +572,6 @@
<string name="messageLinkHandling_dialog_negative">No</string>
<string name="stt_toast_no_provider">No speech-to-text service available</string>
<string name="stt_toast_extra_prompt">Speak your message</string>
<string name="messages_text_share_file_error">Oops! Something went wrong while sharing</string>
</resources>