Commit 7fa7e09 1 parent dd30302 commit 7fa7e09 Copy full SHA for 7fa7e09
File tree 1 file changed +2
-2
lines changed
app/src/main/java/com/infomaniak/mail/ui/main/folder
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -121,8 +121,6 @@ class ThreadListAdapter @Inject constructor(
121
121
this .recyclerView = recyclerView
122
122
}
123
123
124
- private fun shouldDisplayFolderName (folderName : String ) = isFolderNameVisible && folderName.isNotEmpty()
125
-
126
124
override fun getItemViewType (position : Int ): Int = runCatchingRealm {
127
125
val item = dataSet[position]
128
126
return when {
@@ -190,6 +188,8 @@ class ThreadListAdapter @Inject constructor(
190
188
}
191
189
}
192
190
191
+ private fun shouldDisplayFolderName (folderName : String ) = isFolderNameVisible && folderName.isNotEmpty()
192
+
193
193
private fun CardviewThreadItemBinding.displayThread (thread : Thread , position : Int ) {
194
194
val folderName = getFolderName(thread)
195
195
if (shouldDisplayFolderName(folderName)) {
You can’t perform that action at this time.
0 commit comments