1
0
Fork 0

For #13176: Remove race condition for shortcuts (#13815)

master
Tiger Oakes 2020-08-14 08:04:21 -07:00 committed by GitHub
parent e9da776894
commit fce6b4488e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ class CreateShortcutFragment : DialogFragment() {
cancel_button.setOnClickListener { dismiss() }
add_button.setOnClickListener {
val text = shortcut_text.text.toString()
viewLifecycleOwner.lifecycleScope.launch {
requireActivity().lifecycleScope.launch {
requireComponents.useCases.webAppUseCases.addToHomescreen(text)
}
dismiss()