Skip to content
GitLab
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
5e4ef202
Commit
5e4ef202
authored
Feb 10, 2020
by
mcarare
Committed by
Emily Kager
Feb 12, 2020
Browse files
For #8262: Set toolbar position relative anchor for collection snackbars
parent
1f250a73
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/src/main/java/org/mozilla/fenix/home/HomeFragment.kt
View file @
5e4ef202
...
...
@@ -804,7 +804,7 @@ class HomeFragment : Fragment() {
}
FenixSnackbar
.
make
(
view
,
Snackbar
.
LENGTH_LONG
)
.
setText
(
view
.
context
.
getString
(
stringRes
))
.
setAnchorView
(
bottom_bar
)
.
setAnchorView
(
snackbarAnchorView
)
.
show
()
}
}
...
...
@@ -815,7 +815,7 @@ class HomeFragment : Fragment() {
val
string
=
view
.
context
.
getString
(
R
.
string
.
snackbar_collection_renamed
)
FenixSnackbar
.
make
(
view
,
Snackbar
.
LENGTH_LONG
)
.
setText
(
string
)
.
setAnchorView
(
bottom_bar
)
.
setAnchorView
(
snackbarAnchorView
)
.
show
()
}
}
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment