From d3e9e197798a26a1beae4b1cfac27f5d162199ea Mon Sep 17 00:00:00 2001 From: ariskotsomitopoulos Date: Sat, 25 Dec 2021 13:11:42 +0200 Subject: [PATCH] Fix code quality issues --- .../helper/TimelineEventVisibilityHelper.kt | 8 ++- .../view_thread_notification_badge_old.xml | 53 ------------------- 2 files changed, 7 insertions(+), 54 deletions(-) delete mode 100644 vector/src/main/res/layout/view_thread_notification_badge_old.xml diff --git a/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/helper/TimelineEventVisibilityHelper.kt b/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/helper/TimelineEventVisibilityHelper.kt index e91f28cea6..1ffd66c572 100644 --- a/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/helper/TimelineEventVisibilityHelper.kt +++ b/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/helper/TimelineEventVisibilityHelper.kt @@ -90,7 +90,13 @@ class TimelineEventVisibilityHelper @Inject constructor(private val userPreferen * * @return a list of timeline events which have sequentially the same type following the prev direction. */ - fun prevSameTypeEvents(timelineEvents: List, index: Int, minSize: Int, eventIdToHighlight: String?, rootThreadEventId: String?, isFromThreadTimeline: Boolean): List { + fun prevSameTypeEvents( + timelineEvents: List, + index: Int, + minSize: Int, + eventIdToHighlight: String?, + rootThreadEventId: String?, + isFromThreadTimeline: Boolean): List { val prevSub = timelineEvents.subList(0, index + 1) return prevSub .reversed() diff --git a/vector/src/main/res/layout/view_thread_notification_badge_old.xml b/vector/src/main/res/layout/view_thread_notification_badge_old.xml deleted file mode 100644 index 70efceda51..0000000000 --- a/vector/src/main/res/layout/view_thread_notification_badge_old.xml +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - - - - - -