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
cbc8d3aa
Commit
cbc8d3aa
authored
Feb 12, 2020
by
Emily Kager
Committed by
Jeff Boek
Feb 12, 2020
Browse files
For #8366 - Move CreateShortcutFragment dismiss after AddToHomescreen
parent
b5379eb5
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/src/main/java/org/mozilla/fenix/shortcut/CreateShortcutFragment.kt
View file @
cbc8d3aa
...
...
@@ -44,7 +44,8 @@ class CreateShortcutFragment : DialogFragment() {
val
text
=
shortcut_text
.
text
.
toString
()
viewLifecycleOwner
.
lifecycleScope
.
launch
{
requireComponents
.
useCases
.
webAppUseCases
.
addToHomescreen
(
text
)
}.
invokeOnCompletion
{
dismiss
()
}
}
dismiss
()
}
shortcut_text
.
addTextChangedListener
{
...
...
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