Merge pull request #2522 from MilosKozak/fix/issue2504

fix issue 2504, requesting confirmation a second time without context
This commit is contained in:
Milos Kozak 2020-03-19 22:29:27 +01:00 committed by GitHub
commit 30993777a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -57,7 +57,7 @@ class CalibrationDialog : DialogFragmentWithDate() {
activity?.let { activity -> activity?.let { activity ->
OKDialog.showConfirmation(activity, MainApp.gs(R.string.overview_calibration), HtmlHelper.fromHtml(Joiner.on("<br/>").join(actions)), Runnable { OKDialog.showConfirmation(activity, MainApp.gs(R.string.overview_calibration), HtmlHelper.fromHtml(Joiner.on("<br/>").join(actions)), Runnable {
log.debug("USER ENTRY: CALIBRATION $bg") log.debug("USER ENTRY: CALIBRATION $bg")
XdripCalibrations.confirmAndSendCalibration(bg, context) XdripCalibrations.sendIntent(bg)
}) })
} }
} else } else