From fd2dc678ea1019272912eb85c1198a6c426b397e Mon Sep 17 00:00:00 2001 From: Mikunj Date: Thu, 5 Dec 2019 13:56:12 +1100 Subject: [PATCH] Show custom message on no session message. Made a no session message an update message. --- res/layout/conversation_item_update.xml | 11 +++++++- res/values/strings.xml | 3 ++ .../conversation/ConversationActivity.java | 15 +++++++++- .../conversation/ConversationAdapter.java | 4 +++ .../conversation/ConversationFragment.java | 6 +++- .../conversation/ConversationItem.java | 1 + .../conversation/ConversationUpdateItem.java | 28 +++++++++++++++++++ .../securesms/database/MmsSmsColumns.java | 2 +- .../database/model/DisplayRecord.java | 4 +++ .../database/model/MessageRecord.java | 2 +- .../database/model/SmsMessageRecord.java | 11 ++++++-- .../database/model/ThreadRecord.java | 11 ++++++-- .../ConversationUpdateItemViewDelegate.kt | 7 +++++ 13 files changed, 96 insertions(+), 9 deletions(-) create mode 100644 src/org/thoughtcrime/securesms/loki/ConversationUpdateItemViewDelegate.kt diff --git a/res/layout/conversation_item_update.xml b/res/layout/conversation_item_update.xml index 9a2368a43a..3fdf0a1e18 100644 --- a/res/layout/conversation_item_update.xml +++ b/res/layout/conversation_item_update.xml @@ -53,7 +53,7 @@ style="@style/Signal.Text.Preview" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:autoLink="all" + android:autoLink="none" android:gravity="center" android:linksClickable="true" android:textColor="?attr/conversation_item_update_text_color" @@ -74,6 +74,15 @@ android:textColor="?conversation_item_update_text_color" tools:text="30 min ago" /> +