Skip to content

Commit

Permalink
fix resetting url when different option selected
Browse files Browse the repository at this point in the history
We don't want to overwrite the text a user has entered when switching options, but we need to set it once at least.
  • Loading branch information
mikescamell committed Nov 4, 2024
1 parent f34978c commit 3735c9c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ class ShowOnAppLaunchActivity : DuckDuckGoActivity() {
}
}

if (binding.specificPageUrlInput.text != viewState.specificPageUrl) {
if (binding.specificPageUrlInput.text.isBlank()) {
binding.specificPageUrlInput.text = viewState.specificPageUrl
}
}
Expand Down

0 comments on commit 3735c9c

Please sign in to comment.