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
Matthew Finkel
fenix
Commits
5a916d3c
Unverified
Commit
5a916d3c
authored
Sep 03, 2020
by
Matthew Finkel
Browse files
Bug 40016: Don't onboard Search Suggestions
parent
e263e539
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/src/main/java/org/mozilla/fenix/search/SearchFragment.kt
View file @
5a916d3c
...
...
@@ -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
))
...
...
app/src/main/java/org/mozilla/fenix/searchdialog/SearchDialogFragment.kt
View file @
5a916d3c
...
...
@@ -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
))
...
...
Write
Preview
Supports
Markdown
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