1
0
Fork 0

For #8366 - Move CreateShortcutFragment dismiss after AddToHomescreen

master
Emily Kager 2020-02-12 15:41:36 -08:00 committed by Jeff Boek
parent b5379eb513
commit cbc8d3aa45
1 changed files with 2 additions and 1 deletions

View File

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