From 61087d0d5065bb9edc7970fae55da8fe2d1c4063 Mon Sep 17 00:00:00 2001 From: gavine99 Date: Tue, 28 Jan 2025 16:38:00 +1100 Subject: [PATCH] rebased to master. moved send now button to rhs. changed send now button long press to short/normal press --- .../QKSMS/feature/compose/MessagesAdapter.kt | 2 +- .../main/res/layout/message_list_item_out.xml | 23 ++++++++++--------- 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/presentation/src/main/java/com/moez/QKSMS/feature/compose/MessagesAdapter.kt b/presentation/src/main/java/com/moez/QKSMS/feature/compose/MessagesAdapter.kt index 58cdbd58..37f7513d 100644 --- a/presentation/src/main/java/com/moez/QKSMS/feature/compose/MessagesAdapter.kt +++ b/presentation/src/main/java/com/moez/QKSMS/feature/compose/MessagesAdapter.kt @@ -236,7 +236,7 @@ class MessagesAdapter @Inject constructor( holder.sendNowIcon.let { sendNowIcon -> val isCancellable = message.isSending() && message.date > System.currentTimeMillis() sendNowIcon.visibility = if (isCancellable) View.VISIBLE else View.GONE - sendNowIcon.longClicks().subscribe { sendNow.onNext(message.id) } + sendNowIcon.clicks().subscribe { sendNow.onNext(message.id) } } } diff --git a/presentation/src/main/res/layout/message_list_item_out.xml b/presentation/src/main/res/layout/message_list_item_out.xml index d34c67b8..33e4fe38 100644 --- a/presentation/src/main/res/layout/message_list_item_out.xml +++ b/presentation/src/main/res/layout/message_list_item_out.xml @@ -138,17 +138,6 @@ android:layout_height="match_parent" android:layout_weight="1" /> - - + +