Commit 40fcacf0 authored by Matthew Finkel's avatar Matthew Finkel
Browse files

Bug 40016: Don't onboard Search Suggestions

parent a2020f59
......@@ -281,6 +281,11 @@ class SearchFragment : Fragment(), UserInteractionHandler {
inflated.title.text =
getString(R.string.search_suggestions_onboarding_title)
// Hide Search Suggestions prompt and disable
inflated.visibility = View.GONE
context?.settings()?.shouldShowSearchSuggestionsInPrivate = false
context?.settings()?.showSearchSuggestionsInPrivateOnboardingFinished = true
}
view.search_suggestions_onboarding.setOnInflateListener((stubListener))
......
......@@ -266,6 +266,13 @@ class SearchDialogFragment : AppCompatDialogFragment(), UserInteractionHandler {
inflated.title.text =
getString(R.string.search_suggestions_onboarding_title)
// Hide Search Suggestions prompt and disable
inflated.visibility = View.GONE
requireContext().settings().also {
it.shouldShowSearchSuggestionsInPrivate = false
it.showSearchSuggestionsInPrivateOnboardingFinished = true
}
}
view.search_suggestions_hint.setOnInflateListener((stubListener))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment