Skip to content

Commit 562d63c

Browse files
Add explanatory comment about notifyCollapsableFolders()
1 parent e277f94 commit 562d63c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

+3
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,9 @@ class FolderAdapter @Inject constructor(
195195
}
196196
}
197197

198+
/**
199+
* If there was no Folder with children, and then now there's at least one, we need to indent the whole Folders list.
200+
*/
198201
fun notifyCollapsableFolders() {
199202
setFoldersJob?.cancel()
200203
setFoldersJob = globalCoroutineScope.launch {

0 commit comments

Comments
 (0)