Skip to content

Commit

Permalink
Trigger normal mode when all tabs are cleared
Browse files Browse the repository at this point in the history
  • Loading branch information
0nko committed Feb 14, 2025
1 parent 8cc6578 commit bbcf57e
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,9 @@ class TabSwitcherViewModel @Inject constructor(
// Make sure all exemptions are removed as all tabs are deleted.
adClickManager.clearAll()
pixel.fire(AppPixelName.TAB_MANAGER_MENU_CLOSE_ALL_TABS_CONFIRMED)

// Trigger a normal mode when there are no tabs
_selectionViewState.update { it.copy(mode = SelectionViewState.Mode.Normal) }
}
}

Expand Down

0 comments on commit bbcf57e

Please sign in to comment.