File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
app/src/main/java/com/infomaniak/mail/ui/main/folder Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -190,7 +190,7 @@ class ThreadListAdapter @Inject constructor(
190190 private fun shouldDisplayFolderName (folderName : String ) = isFolderNameVisible && folderName.isNotEmpty()
191191
192192 private fun CardviewThreadItemBinding.displayThread (thread : Thread , position : Int ) {
193-
193+ resetFolderNameVisibility()
194194 displayFolderName(thread)
195195
196196 refreshCachedSelectedPosition(thread.uid, position) // If item changed position, update cached position.
@@ -248,11 +248,15 @@ class ThreadListAdapter @Inject constructor(
248248 ),
249249 )
250250 } else {
251- folderNameExpandMode.isVisible = false
252- folderNameCompactMode.isVisible = false
251+ resetFolderNameVisibility()
253252 }
254253 }
255254
255+ private fun CardviewThreadItemBinding.resetFolderNameVisibility () {
256+ folderNameExpandMode.isVisible = false
257+ folderNameCompactMode.isVisible = false
258+ }
259+
256260 private fun CardviewThreadItemBinding.onThreadClickWithAbilityToOpenMultiSelection (
257261 thread : Thread ,
258262 listener : MultiSelectionListener <Thread >,
You can’t perform that action at this time.
0 commit comments