Commit 06573c35 authored by Matthew Finkel's avatar Matthew Finkel
Browse files

Bug 40016: Don't onboard Search Suggestions

parent abd59835
......@@ -257,6 +257,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))
......
......@@ -280,6 +280,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))
......
Supports Markdown
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