File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
app/src/main/java/com/duckduckgo/app/tabs Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -36,5 +36,7 @@ interface TabManagerFeatureFlags {
36
36
@Toggle.DefaultValue (DefaultFeatureValue .TRUE )
37
37
fun tabInsertionFixes (): Toggle
38
38
39
- // There will be a new feature for the new design of tab manager
39
+ @Toggle.InternalAlwaysEnabled
40
+ @Toggle.DefaultValue (DefaultFeatureValue .FALSE )
41
+ fun newToolbarFeature (): Toggle
40
42
}
Original file line number Diff line number Diff line change @@ -166,6 +166,10 @@ class TabSwitcherViewModel @Inject constructor(
166
166
private val selectionMode: Selection
167
167
get() = requireNotNull(selectionViewState.value.mode as Selection )
168
168
169
+ val isNewDesignEnabled: Boolean by lazy {
170
+ tabManagerFeatureFlags.newToolbarFeature().isEnabled()
171
+ }
172
+
169
173
sealed class Command {
170
174
data object Close : Command ()
171
175
data class CloseAndShowUndoMessage (val deletedTabIds : List <String >) : Command()
You can’t perform that action at this time.
0 commit comments