Skip to content

Commit 4351f55

Browse files
Add explanatory comment
1 parent 77c3e69 commit 4351f55

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/src/main/java/com/infomaniak/mail/ui/main/thread/ThreadFragment.kt

+3-3
Original file line numberDiff line numberDiff line change
@@ -199,17 +199,17 @@ class ThreadFragment : Fragment() {
199199
private fun updateStatusBarColor() {
200200

201201
val statusBarColor = when {
202-
twoPaneViewModel.isInThreadInPhoneMode(requireContext()) -> {
202+
twoPaneViewModel.isInThreadInPhoneMode(requireContext()) -> { // Phone mode in Thread
203203
if (binding.messagesListNestedScrollView.isAtTheTop()) {
204204
R.color.toolbarLoweredColor
205205
} else {
206206
R.color.toolbarElevatedColor
207207
}
208208
}
209-
twoPaneFragment is ThreadListFragment -> {
209+
twoPaneFragment is ThreadListFragment -> { // Tablet mode in ThreadList
210210
R.color.backgroundHeaderColor
211211
}
212-
else -> {
212+
else -> { // Tablet mode in Search
213213
R.color.backgroundColor
214214
}
215215
}

0 commit comments

Comments
 (0)