Browse Source

For #8366 - Move CreateShortcutFragment dismiss after AddToHomescreen

master
Emily Kager 2 years ago
committed by Jeff Boek
parent
commit
cbc8d3aa45
  1. 3
      app/src/main/java/org/mozilla/fenix/shortcut/CreateShortcutFragment.kt

3
app/src/main/java/org/mozilla/fenix/shortcut/CreateShortcutFragment.kt

@ -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 {

Loading…
Cancel
Save