From 9a0e5e7b6cb6770d5f6e192307dea6fa6f668b3e Mon Sep 17 00:00:00 2001 From: nielsandriesse Date: Wed, 2 Jun 2021 13:28:02 +1000 Subject: [PATCH] Make room for triple dot menu --- .../conversation/v2/ConversationActivityV2.kt | 6 ++-- .../conversation_back_button_background.xml | 15 ++++++++++ .../res/layout/activity_conversation_v2.xml | 30 ++++++++++++------- 3 files changed, 36 insertions(+), 15 deletions(-) create mode 100644 app/src/main/res/drawable/conversation_back_button_background.xml diff --git a/app/src/main/java/org/thoughtcrime/securesms/conversation/v2/ConversationActivityV2.kt b/app/src/main/java/org/thoughtcrime/securesms/conversation/v2/ConversationActivityV2.kt index 1e9bc2e781..4342e9cf32 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/conversation/v2/ConversationActivityV2.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/conversation/v2/ConversationActivityV2.kt @@ -4,7 +4,6 @@ import android.os.Bundle import androidx.recyclerview.widget.LinearLayoutManager import kotlinx.android.synthetic.main.activity_conversation_v2.* import network.loki.messenger.R -import org.session.libsession.utilities.TextSecurePreferences import org.thoughtcrime.securesms.PassphraseRequiredActionBarActivity import org.thoughtcrime.securesms.database.DatabaseFactory import org.thoughtcrime.securesms.mms.GlideApp @@ -46,9 +45,8 @@ class ConversationActivityV2 : PassphraseRequiredActionBarActivity() { private fun setUpToolbar() { backButton.setOnClickListener { onBackPressed() } conversationTitleView.text = thread.toShortString() - conversationSettingsButton.glide = glide - conversationSettingsButton.update(thread, threadID) - conversationSettingsButton.setOnClickListener { showConversationSettings() } + profilePictureView.glide = glide + profilePictureView.update(thread, threadID) } // endregion diff --git a/app/src/main/res/drawable/conversation_back_button_background.xml b/app/src/main/res/drawable/conversation_back_button_background.xml new file mode 100644 index 0000000000..f259e83e74 --- /dev/null +++ b/app/src/main/res/drawable/conversation_back_button_background.xml @@ -0,0 +1,15 @@ + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/activity_conversation_v2.xml b/app/src/main/res/layout/activity_conversation_v2.xml index d76737410e..aad8fb4c39 100644 --- a/app/src/main/res/layout/activity_conversation_v2.xml +++ b/app/src/main/res/layout/activity_conversation_v2.xml @@ -20,14 +20,29 @@ android:layout_marginLeft="20dp" android:layout_marginRight="20dp"> - + android:orientation="horizontal" + android:background="@drawable/conversation_back_button_background"> + + + + + + - -