We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05ae27f commit aee2b4bCopy full SHA for aee2b4b
app/src/main/java/com/duckduckgo/app/browser/BrowserActivity.kt
@@ -346,6 +346,11 @@ open class BrowserActivity : DuckDuckGoActivity() {
346
347
super.onCreate(savedInstanceState = newInstanceState, daggerInject = false)
348
349
+ // safety check: if the omnibar type is SPLIT but the feature is disabled, reset to SINGLE_TOP
350
+ if (settingsDataStore.omnibarType == OmnibarType.SPLIT && (!browserFeatures.useUnifiedOmnibarLayout().isEnabled() || !browserFeatures.splitOmnibar().isEnabled())) {
351
+ settingsDataStore.omnibarType = OmnibarType.SINGLE_TOP
352
+ }
353
+
354
bindMockupToolbars()
355
356
setContentView(binding.root)
0 commit comments