Skip to content

Commit 43b3325

Browse files
committed
Trigger normal mode when all tabs are cleared
1 parent 7da2185 commit 43b3325

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/src/main/java/com/duckduckgo/app/tabs/ui/TabSwitcherViewModel.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,9 @@ class TabSwitcherViewModel @Inject constructor(
188188
// Make sure all exemptions are removed as all tabs are deleted.
189189
adClickManager.clearAll()
190190
pixel.fire(AppPixelName.TAB_MANAGER_MENU_CLOSE_ALL_TABS_CONFIRMED)
191+
192+
// Trigger a normal mode when there are no tabs
193+
_selectionViewState.update { it.copy(mode = SelectionViewState.Mode.Normal) }
191194
}
192195
}
193196

0 commit comments

Comments
 (0)