Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Tor Project
Applications
fenix
Commits
40fcacf0
Commit
40fcacf0
authored
Sep 03, 2020
by
Matthew Finkel
Browse files
Bug 40016: Don't onboard Search Suggestions
parent
a2020f59
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/src/main/java/org/mozilla/fenix/search/SearchFragment.kt
View file @
40fcacf0
...
...
@@ -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
))
...
...
app/src/main/java/org/mozilla/fenix/searchdialog/SearchDialogFragment.kt
View file @
40fcacf0
...
...
@@ -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
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment