From c17d52d1a788e7d4a2532c16ad911e773d499b3c Mon Sep 17 00:00:00 2001 From: Tibor Kaputa Date: Sun, 5 Jun 2022 09:12:15 +0200 Subject: [PATCH] Update SettingsActivity.kt --- .../calculator/activities/SettingsActivity.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/calculator/activities/SettingsActivity.kt b/app/src/main/kotlin/com/simplemobiletools/calculator/activities/SettingsActivity.kt index 1b158fbd..e12e9568 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calculator/activities/SettingsActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calculator/activities/SettingsActivity.kt @@ -105,7 +105,9 @@ class SettingsActivity : SimpleActivity() { settings_use_comma_as_decimal_mark.toggle() config.useCommaAsDecimalMark = settings_use_comma_as_decimal_mark.isChecked updateWidgets() - ensureBackgroundThread { applicationContext.calculatorDB.deleteHistory() } + ensureBackgroundThread { + applicationContext.calculatorDB.deleteHistory() + } } }