From 6e66c319116659e4cf33a4872a1a2c8048a27059 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Tue, 30 Jun 2020 18:03:25 +0200 Subject: [PATCH] Small cleanup --- tools/check/forbidden_strings_in_code.txt | 2 +- .../home/room/detail/RoomDetailViewModel.kt | 1 - .../item_timeline_event_base_noinfo.xml | 2 +- .../item_timeline_event_merged_utd_stub.xml | 23 ++++++++++--------- 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/tools/check/forbidden_strings_in_code.txt b/tools/check/forbidden_strings_in_code.txt index f7eb7f9c51..68ee0b2dd2 100644 --- a/tools/check/forbidden_strings_in_code.txt +++ b/tools/check/forbidden_strings_in_code.txt @@ -164,7 +164,7 @@ Formatter\.formatShortFileSize===1 # android\.text\.TextUtils ### This is not a rule, but a warning: the number of "enum class" has changed. For Json classes, it is mandatory that they have `@JsonClass(generateAdapter = false)`. If it is ok, change the value in file forbidden_strings_in_code.txt -enum class===72 +enum class===73 ### Do not import temporary legacy classes import im.vector.matrix.android.internal.legacy.riot===3 diff --git a/vector/src/main/java/im/vector/riotx/features/home/room/detail/RoomDetailViewModel.kt b/vector/src/main/java/im/vector/riotx/features/home/room/detail/RoomDetailViewModel.kt index 7a3f77039e..9a79ea6a0a 100644 --- a/vector/src/main/java/im/vector/riotx/features/home/room/detail/RoomDetailViewModel.kt +++ b/vector/src/main/java/im/vector/riotx/features/home/room/detail/RoomDetailViewModel.kt @@ -60,7 +60,6 @@ import im.vector.matrix.android.api.session.room.timeline.getTextEditableContent import im.vector.matrix.android.api.util.toOptional import im.vector.matrix.android.internal.crypto.attachments.toElementToDecrypt import im.vector.matrix.android.internal.crypto.model.event.EncryptedEventContent -import im.vector.matrix.rx.asObservable import im.vector.matrix.android.internal.crypto.model.event.WithHeldCode import im.vector.matrix.rx.rx import im.vector.matrix.rx.unwrap diff --git a/vector/src/main/res/layout/item_timeline_event_base_noinfo.xml b/vector/src/main/res/layout/item_timeline_event_base_noinfo.xml index f8d46bb04e..d509d4e88b 100644 --- a/vector/src/main/res/layout/item_timeline_event_base_noinfo.xml +++ b/vector/src/main/res/layout/item_timeline_event_base_noinfo.xml @@ -65,7 +65,7 @@ android:id="@+id/messageContentMergedUTDStub" style="@style/TimelineContentStubBaseParams" android:layout="@layout/item_timeline_event_merged_utd_stub" - tools:layout_marginTop="240dp" + tools:layout_marginTop="380dp" tools:visibility="visible" /> diff --git a/vector/src/main/res/layout/item_timeline_event_merged_utd_stub.xml b/vector/src/main/res/layout/item_timeline_event_merged_utd_stub.xml index 039e0b7960..847324884c 100644 --- a/vector/src/main/res/layout/item_timeline_event_merged_utd_stub.xml +++ b/vector/src/main/res/layout/item_timeline_event_merged_utd_stub.xml @@ -1,22 +1,22 @@ + android:layout_height="wrap_content"> + app:drawableTint="?riotx_text_secondary" /> + android:textStyle="italic" /> + android:textStyle="italic" + android:visibility="gone" + tools:visibility="visible" />