Skip to content

Commit b0a199f

Browse files
authored
show the same omnibar hint on pages and NTP (#6076)
Task/Issue URL: https://app.asana.com/1/137249556945/project/1208671518894266/task/1210251609451227?focus=true ### Description When new visual design enabled, show the same hint in the omnibar when both text cleared on a page or NTP opened.
1 parent ed217c1 commit b0a199f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/com/duckduckgo/app/browser/omnibar/OmnibarLayout.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,7 @@ open class OmnibarLayout @JvmOverloads constructor(
696696
}
697697

698698
private fun renderHint(viewState: ViewState) {
699-
if (viewState.viewMode is NewTab && duckChat.showInAddressBar.value) {
699+
if (!viewState.isVisualDesignExperimentEnabled && viewState.viewMode is NewTab && duckChat.showInAddressBar.value) {
700700
omnibarTextInput.hint = context.getString(R.string.search)
701701
} else {
702702
omnibarTextInput.hint = context.getString(R.string.omnibarInputHint)

0 commit comments

Comments
 (0)