Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
firefox-android
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cypherpunks1
firefox-android
Commits
15e94f9c
Commit
15e94f9c
authored
1 year ago
by
mike a
Committed by
mergify[bot]
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Bug 1837864 – fix search settings opening visual glitch
(cherry picked from commit 9c46e7206db19b7eeac9f02c4e7b2aad1019c72a)
parent
4d770e2e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
fenix/app/src/main/java/org/mozilla/fenix/settings/search/SearchEngineFragment.kt
+6
-1
6 additions, 1 deletion
...org/mozilla/fenix/settings/search/SearchEngineFragment.kt
with
6 additions
and
1 deletion
fenix/app/src/main/java/org/mozilla/fenix/settings/search/SearchEngineFragment.kt
+
6
−
1
View file @
15e94f9c
...
...
@@ -32,6 +32,12 @@ class SearchEngineFragment : PreferenceFragmentCompat() {
if
(
unifiedSearchUI
)
R
.
xml
.
search_settings_preferences
else
R
.
xml
.
search_preferences
,
rootKey
,
)
// Visibility should be set before the view has been created, to avoid visual glitches.
requirePreference
<
SwitchPreference
>(
R
.
string
.
pref_key_show_search_engine_shortcuts
).
apply
{
isVisible
=
!
context
.
settings
().
showUnifiedSearchFeature
}
view
?.
hideKeyboard
()
}
...
...
@@ -65,7 +71,6 @@ class SearchEngineFragment : PreferenceFragmentCompat() {
val
showSearchShortcuts
=
requirePreference
<
SwitchPreference
>(
R
.
string
.
pref_key_show_search_engine_shortcuts
).
apply
{
isChecked
=
context
.
settings
().
shouldShowSearchShortcuts
isVisible
=
!
context
.
settings
().
showUnifiedSearchFeature
}
val
showHistorySuggestions
=
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment