Merge pull request #2377 from quizzmaster/fix_bolusdialog

BolusProgressDialog not cancelable
This commit is contained in:
Milos Kozak 2020-01-17 21:09:57 +01:00 committed by GitHub
commit 177c1e429f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -56,7 +56,7 @@ class BolusProgressDialog : DialogFragment() {
savedInstanceState: Bundle?): View? { savedInstanceState: Bundle?): View? {
dialog?.window?.requestFeature(Window.FEATURE_NO_TITLE) dialog?.window?.requestFeature(Window.FEATURE_NO_TITLE)
dialog?.window?.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_HIDDEN) dialog?.window?.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_HIDDEN)
isCancelable = true isCancelable = false
dialog?.setCanceledOnTouchOutside(false) dialog?.setCanceledOnTouchOutside(false)
return inflater.inflate(R.layout.dialog_bolusprogress, container, false) return inflater.inflate(R.layout.dialog_bolusprogress, container, false)
} }
@ -156,4 +156,4 @@ class BolusProgressDialog : DialogFragment() {
} }
}).start() }).start()
} }
} }