Skip to content

Commit d577a2c

Browse files
Move tag attribution to the correct spot
1 parent 0fa5cb3 commit d577a2c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app/src/main/java/com/infomaniak/mail/ui/main/menu/FolderAdapter.kt

+1-2
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,6 @@ class FolderAdapter @Inject constructor(
9999
override fun onBindViewHolder(holder: FolderViewHolder, position: Int) = with(holder.binding) {
100100
val folder = folders[position]
101101

102-
root.tag = if (folder.shouldDisplayDivider) null else UiUtils.IGNORE_DIVIDER_TAG
103-
104102
when (getItemViewType(position)) {
105103
DisplayType.SELECTABLE_FOLDER.layout -> (this as ItemSelectableFolderBinding).root.displayFolder(folder)
106104
DisplayType.MENU_DRAWER.layout -> (this as ItemFolderMenuDrawerBinding).root.displayMenuDrawerFolder(folder)
@@ -150,6 +148,7 @@ class FolderAdapter @Inject constructor(
150148
) {
151149
val folderName = folder.getLocalizedName(context)
152150

151+
tag = if (folder.shouldDisplayDivider) null else UiUtils.IGNORE_DIVIDER_TAG
153152
text = folderName
154153
icon = AppCompatResources.getDrawable(context, iconId)
155154
setSelectedState(currentFolderId == folder.id)

0 commit comments

Comments
 (0)