From a3d45bbba89e611336b54a26dfb2c7a5940963bf Mon Sep 17 00:00:00 2001 From: Onuray Sahin Date: Sun, 28 Feb 2021 19:34:19 +0300 Subject: [PATCH] Failed messages bottom sheet UI fixes. --- .../action/MessageActionsEpoxyController.kt | 8 +---- .../item_bottom_sheet_message_preview.xml | 34 ++++++++----------- .../item_bottom_sheet_message_status.xml | 2 +- 3 files changed, 17 insertions(+), 27 deletions(-) diff --git a/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/action/MessageActionsEpoxyController.kt b/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/action/MessageActionsEpoxyController.kt index cc3d5cc463..57558efef1 100644 --- a/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/action/MessageActionsEpoxyController.kt +++ b/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/action/MessageActionsEpoxyController.kt @@ -63,13 +63,7 @@ class MessageActionsEpoxyController @Inject constructor( } // Send state - if (state.informationData.sendState.isSending()) { - bottomSheetSendStateItem { - id("send_state") - showProgress(true) - text(stringProvider.getString(R.string.event_status_sending_message)) - } - } else if (state.informationData.sendState.hasFailed()) { + if (state.informationData.sendState.hasFailed()) { bottomSheetSendStateItem { id("send_state") showProgress(false) diff --git a/vector/src/main/res/layout/item_bottom_sheet_message_preview.xml b/vector/src/main/res/layout/item_bottom_sheet_message_preview.xml index 0e4a613662..5ad3c7bb8b 100644 --- a/vector/src/main/res/layout/item_bottom_sheet_message_preview.xml +++ b/vector/src/main/res/layout/item_bottom_sheet_message_preview.xml @@ -8,8 +8,8 @@ + + - - diff --git a/vector/src/main/res/layout/item_bottom_sheet_message_status.xml b/vector/src/main/res/layout/item_bottom_sheet_message_status.xml index fcb373fa0d..3d50cce72a 100644 --- a/vector/src/main/res/layout/item_bottom_sheet_message_status.xml +++ b/vector/src/main/res/layout/item_bottom_sheet_message_status.xml @@ -5,7 +5,7 @@ android:id="@+id/messageStatusInfo" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginStart="16dp" + android:layout_marginStart="64dp" android:layout_marginEnd="16dp" android:layout_marginBottom="4dp">