We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eaa6196 commit b384dedCopy full SHA for b384ded
app/src/main/java/com/infomaniak/mail/ui/main/folder/ThreadListMultiSelection.kt
@@ -128,9 +128,13 @@ class ThreadListMultiSelection {
128
}
129
130
mainViewModel.selectedThreadsLiveData.observe(viewLifecycleOwner) { selectedThreads ->
131
- updateSelectedCount(selectedThreads)
132
- updateSelectAllLabel()
133
- updateMultiSelectActionsStatus(selectedThreads)
+ if (selectedThreads.isEmpty()) {
+ mainViewModel.isMultiSelectOn = false
+ } else {
134
+ updateSelectedCount(selectedThreads)
135
+ updateSelectAllLabel()
136
+ updateMultiSelectActionsStatus(selectedThreads)
137
+ }
138
139
140
0 commit comments