File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
app/src/main/java/com/infomaniak/mail/ui Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -434,7 +434,7 @@ class MainActivity : BaseActivity() {
434
434
trackDestination(destination)
435
435
436
436
updateColorsWhenDestinationChanged(destination.id)
437
- setDrawerLockMode(destination.id = = R .id.threadListFragment)
437
+ setDrawerLockMode(isLocked = destination.id ! = R .id.threadListFragment)
438
438
439
439
previousDestinationId = destination.id
440
440
}
@@ -468,8 +468,8 @@ class MainActivity : BaseActivity() {
468
468
}
469
469
}
470
470
471
- fun setDrawerLockMode (isUnlocked : Boolean ) {
472
- val drawerLockMode = if (isUnlocked ) DrawerLayout .LOCK_MODE_UNLOCKED else DrawerLayout .LOCK_MODE_LOCKED_CLOSED
471
+ fun setDrawerLockMode (isLocked : Boolean ) {
472
+ val drawerLockMode = if (isLocked ) DrawerLayout .LOCK_MODE_LOCKED_CLOSED else DrawerLayout .LOCK_MODE_UNLOCKED
473
473
binding.drawerLayout.setDrawerLockMode(drawerLockMode)
474
474
}
475
475
Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ class ThreadListMultiSelection {
144
144
}
145
145
146
146
private fun lockDrawerAndSwipe (isMultiSelectOn : Boolean ) = with (threadListFragment) {
147
- (requireActivity() as MainActivity ).setDrawerLockMode(! isMultiSelectOn)
147
+ (requireActivity() as MainActivity ).setDrawerLockMode(isLocked = isMultiSelectOn)
148
148
if (isMultiSelectOn) {
149
149
binding.threadsList.apply {
150
150
disableSwipeDirection(DirectionFlag .LEFT )
You can’t perform that action at this time.
0 commit comments