Skip to content

Commit 7fa7e09

Browse files
committed
Group private methods together
1 parent dd30302 commit 7fa7e09

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/src/main/java/com/infomaniak/mail/ui/main/folder/ThreadListAdapter.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,6 @@ class ThreadListAdapter @Inject constructor(
121121
this.recyclerView = recyclerView
122122
}
123123

124-
private fun shouldDisplayFolderName(folderName: String) = isFolderNameVisible && folderName.isNotEmpty()
125-
126124
override fun getItemViewType(position: Int): Int = runCatchingRealm {
127125
val item = dataSet[position]
128126
return when {
@@ -190,6 +188,8 @@ class ThreadListAdapter @Inject constructor(
190188
}
191189
}
192190

191+
private fun shouldDisplayFolderName(folderName: String) = isFolderNameVisible && folderName.isNotEmpty()
192+
193193
private fun CardviewThreadItemBinding.displayThread(thread: Thread, position: Int) {
194194
val folderName = getFolderName(thread)
195195
if (shouldDisplayFolderName(folderName)) {

0 commit comments

Comments
 (0)