From 61cabe9d4096f3b361bc05654c88a8b0fbc0d8e2 Mon Sep 17 00:00:00 2001 From: tibbi Date: Wed, 29 Jun 2022 23:13:28 +0200 Subject: [PATCH] updating commons --- app/build.gradle | 2 +- .../calculator/activities/WidgetConfigureActivity.kt | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 078f3a25..a54b1214 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -62,7 +62,7 @@ android { } dependencies { - implementation 'com.github.SimpleMobileTools:Simple-Commons:faa6a972c2' + implementation 'com.github.SimpleMobileTools:Simple-Commons:066c60f8ba' implementation 'me.grantland:autofittextview:0.2.1' implementation 'net.objecthunter:exp4j:0.4.8' diff --git a/app/src/main/kotlin/com/simplemobiletools/calculator/activities/WidgetConfigureActivity.kt b/app/src/main/kotlin/com/simplemobiletools/calculator/activities/WidgetConfigureActivity.kt index 8e1cbd98..46d6823e 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calculator/activities/WidgetConfigureActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calculator/activities/WidgetConfigureActivity.kt @@ -12,7 +12,7 @@ import com.simplemobiletools.calculator.R import com.simplemobiletools.calculator.extensions.config import com.simplemobiletools.calculator.helpers.MyWidgetProvider import com.simplemobiletools.commons.dialogs.ColorPickerDialog -import com.simplemobiletools.commons.dialogs.WidgetLockedDialog +import com.simplemobiletools.commons.dialogs.FeatureLockedDialog import com.simplemobiletools.commons.extensions.* import com.simplemobiletools.commons.helpers.IS_CUSTOMIZING_COLORS import kotlinx.android.synthetic.main.activity_main.* @@ -24,7 +24,7 @@ class WidgetConfigureActivity : SimpleActivity() { private var mBgColor = 0 private var mTextColor = 0 private var mBgColorWithoutTransparency = 0 - private var mWidgetLockedDialog: WidgetLockedDialog? = null + private var mFeatureLockedDialog: FeatureLockedDialog? = null public override fun onCreate(savedInstanceState: Bundle?) { useDynamicTheme = false @@ -48,7 +48,7 @@ class WidgetConfigureActivity : SimpleActivity() { config_bg_seekbar.setColors(mTextColor, primaryColor, primaryColor) if (!isCustomizingColors && !isOrWasThankYouInstalled()) { - mWidgetLockedDialog = WidgetLockedDialog(this) { + mFeatureLockedDialog = FeatureLockedDialog(this) { if (!isOrWasThankYouInstalled()) { finish() } @@ -60,8 +60,8 @@ class WidgetConfigureActivity : SimpleActivity() { super.onResume() window.decorView.setBackgroundColor(0) - if (mWidgetLockedDialog != null && isOrWasThankYouInstalled()) { - mWidgetLockedDialog?.dismissDialog() + if (mFeatureLockedDialog != null && isOrWasThankYouInstalled()) { + mFeatureLockedDialog?.dismissDialog() } }