BolusProgressDialog not cancelable

This commit is contained in:
Sebastian Lenz 2020-01-17 17:16:36 +01:00
parent ef4903253d
commit 4521434f4e

View file

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