Skip to content

Commit

Permalink
Uncomment the layout mode change
Browse files Browse the repository at this point in the history
  • Loading branch information
0nko committed Mar 10, 2025
1 parent 7bbd585 commit 63cf555
Showing 1 changed file with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -269,20 +269,20 @@ class TabSwitcherViewModel @Inject constructor(
}

fun onLayoutTypeToggled() {
// viewModelScope.launch(dispatcherProvider.io()) {
// val newLayoutType = when (layoutType.value) {
// GRID -> {
// pixel.fire(AppPixelName.TAB_MANAGER_LIST_VIEW_BUTTON_CLICKED)
// LIST
// }
// LIST -> {
// pixel.fire(AppPixelName.TAB_MANAGER_GRID_VIEW_BUTTON_CLICKED)
// GRID
// }
// else -> null
// }
// newLayoutType?.let { tabRepository.setTabLayoutType(it) }
// }
viewModelScope.launch(dispatcherProvider.io()) {
val newLayoutType = when (layoutType.value) {
GRID -> {
pixel.fire(AppPixelName.TAB_MANAGER_LIST_VIEW_BUTTON_CLICKED)
LIST
}
LIST -> {
pixel.fire(AppPixelName.TAB_MANAGER_GRID_VIEW_BUTTON_CLICKED)
GRID
}
else -> null
}
newLayoutType?.let { tabRepository.setTabLayoutType(it) }
}
}

fun onFabClicked() {
Expand Down

0 comments on commit 63cf555

Please sign in to comment.