From d7546db26f917a630c09d4d992e1abd801ce5a25 Mon Sep 17 00:00:00 2001 From: ariskotsomitopoulos Date: Tue, 21 Dec 2021 20:09:25 +0200 Subject: [PATCH] Fix code quality issues --- .../home/room/threads/ThreadsActivity.kt | 6 +++++- .../res/layout/view_room_detail_toolbar.xml | 18 +++++++++--------- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/vector/src/main/java/im/vector/app/features/home/room/threads/ThreadsActivity.kt b/vector/src/main/java/im/vector/app/features/home/room/threads/ThreadsActivity.kt index 84d270a2c2..fe3c32ae65 100644 --- a/vector/src/main/java/im/vector/app/features/home/room/threads/ThreadsActivity.kt +++ b/vector/src/main/java/im/vector/app/features/home/room/threads/ThreadsActivity.kt @@ -102,7 +102,11 @@ class ThreadsActivity : VectorBaseActivity(), ToolbarCon avatarUrl = timelineEvent.senderInfo.avatarUrl, rootThreadEventId = timelineEvent.eventId) val commonOption: (FragmentTransaction) -> Unit = { - it.setCustomAnimations(R.anim.animation_slide_in_right, R.anim.animation_slide_out_left, R.anim.animation_slide_in_left, R.anim.animation_slide_out_right) + it.setCustomAnimations( + R.anim.animation_slide_in_right, + R.anim.animation_slide_out_left, + R.anim.animation_slide_in_left, + R.anim.animation_slide_out_right) } addFragmentToBackstack( container = views.threadsActivityFragmentContainer, diff --git a/vector/src/main/res/layout/view_room_detail_toolbar.xml b/vector/src/main/res/layout/view_room_detail_toolbar.xml index fdc3f6819e..ab78f45243 100644 --- a/vector/src/main/res/layout/view_room_detail_toolbar.xml +++ b/vector/src/main/res/layout/view_room_detail_toolbar.xml @@ -25,9 +25,9 @@ android:layout_height="17dp" android:layout_marginStart="5dp" android:layout_marginTop="2dp" - app:layout_constraintBottom_toBottomOf="@+id/roomToolbarTitleView" - app:layout_constraintStart_toEndOf="@+id/roomToolbarAvatarImageView" - app:layout_constraintTop_toTopOf="@+id/roomToolbarTitleView" /> + app:layout_constraintBottom_toBottomOf="@id/roomToolbarTitleView" + app:layout_constraintStart_toEndOf="@id/roomToolbarAvatarImageView" + app:layout_constraintTop_toTopOf="@id/roomToolbarTitleView" />