From 979744cbd5d0c95292c1d059c2a8d00b2cce512c Mon Sep 17 00:00:00 2001 From: tibbi Date: Mon, 6 Apr 2020 12:44:53 +0200 Subject: [PATCH] moving some views at the existing Thread activity --- .../activities/NewMessageActivity.kt | 1 - .../main/res/layout/activity_new_message.xml | 36 --------------- app/src/main/res/layout/activity_thread.xml | 45 +++++++++++++++++++ 3 files changed, 45 insertions(+), 37 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/smsmessenger/activities/NewMessageActivity.kt b/app/src/main/kotlin/com/simplemobiletools/smsmessenger/activities/NewMessageActivity.kt index 5a955acd..8b3197d5 100644 --- a/app/src/main/kotlin/com/simplemobiletools/smsmessenger/activities/NewMessageActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/smsmessenger/activities/NewMessageActivity.kt @@ -76,7 +76,6 @@ class NewMessageActivity : SimpleActivity() { private fun addSelectedContact(contact: Contact) { new_message_to.setText("") - thread_type_message.requestFocus() if (selectedContacts.map { it.id }.contains(contact.id)) { return } diff --git a/app/src/main/res/layout/activity_new_message.xml b/app/src/main/res/layout/activity_new_message.xml index b4a4f303..0caaa0a2 100644 --- a/app/src/main/res/layout/activity_new_message.xml +++ b/app/src/main/res/layout/activity_new_message.xml @@ -48,7 +48,6 @@ android:id="@+id/messages_list" android:layout_width="match_parent" android:layout_height="match_parent" - android:layout_above="@+id/message_divider_three" android:layout_below="@+id/message_divider_two" android:clipToPadding="false" android:overScrollMode="ifContentScrolls" @@ -57,39 +56,4 @@ app:layoutManager="com.simplemobiletools.commons.views.MyLinearLayoutManager" app:stackFromEnd="true" /> - - - - - - diff --git a/app/src/main/res/layout/activity_thread.xml b/app/src/main/res/layout/activity_thread.xml index e47129ba..047cb5d5 100644 --- a/app/src/main/res/layout/activity_thread.xml +++ b/app/src/main/res/layout/activity_thread.xml @@ -6,11 +6,56 @@ android:layout_height="wrap_content" android:layout_marginBottom="@dimen/tiny_margin"> + + + + + + + + + + +