diff --git a/app/build.gradle b/app/build.gradle index c509d59..002c026 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -62,7 +62,7 @@ android { } dependencies { - implementation 'com.github.SimpleMobileTools:Simple-Commons:4b8a3568df' + implementation 'com.github.SimpleMobileTools:Simple-Commons:c070dff787' implementation 'org.greenrobot:eventbus:3.3.1' implementation 'androidx.constraintlayout:constraintlayout:2.1.4' } diff --git a/app/src/main/kotlin/com/simplemobiletools/flashlight/activities/WidgetBrightDisplayConfigureActivity.kt b/app/src/main/kotlin/com/simplemobiletools/flashlight/activities/WidgetBrightDisplayConfigureActivity.kt index 9b1998c..b83e343 100644 --- a/app/src/main/kotlin/com/simplemobiletools/flashlight/activities/WidgetBrightDisplayConfigureActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/flashlight/activities/WidgetBrightDisplayConfigureActivity.kt @@ -7,7 +7,7 @@ import android.graphics.Color import android.os.Bundle import android.widget.SeekBar 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 com.simplemobiletools.flashlight.R @@ -20,7 +20,7 @@ class WidgetBrightDisplayConfigureActivity : SimpleActivity() { private var mWidgetId = 0 private var mWidgetColor = 0 private var mWidgetColorWithoutTransparency = 0 - private var mWidgetLockedDialog: WidgetLockedDialog? = null + private var mFeatureLockedDialog: FeatureLockedDialog? = null public override fun onCreate(savedInstanceState: Bundle?) { useDynamicTheme = false @@ -43,7 +43,7 @@ class WidgetBrightDisplayConfigureActivity : SimpleActivity() { config_widget_seekbar.setColors(getProperTextColor(), primaryColor, primaryColor) if (!isCustomizingColors && !isOrWasThankYouInstalled()) { - mWidgetLockedDialog = WidgetLockedDialog(this) { + mFeatureLockedDialog = FeatureLockedDialog(this) { if (!isOrWasThankYouInstalled()) { finish() } @@ -55,8 +55,8 @@ class WidgetBrightDisplayConfigureActivity : SimpleActivity() { super.onResume() window.decorView.setBackgroundColor(0) - if (mWidgetLockedDialog != null && isOrWasThankYouInstalled()) { - mWidgetLockedDialog?.dismissDialog() + if (mFeatureLockedDialog != null && isOrWasThankYouInstalled()) { + mFeatureLockedDialog?.dismissDialog() } } diff --git a/app/src/main/kotlin/com/simplemobiletools/flashlight/activities/WidgetTorchConfigureActivity.kt b/app/src/main/kotlin/com/simplemobiletools/flashlight/activities/WidgetTorchConfigureActivity.kt index 5dece9a..c3bf00f 100644 --- a/app/src/main/kotlin/com/simplemobiletools/flashlight/activities/WidgetTorchConfigureActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/flashlight/activities/WidgetTorchConfigureActivity.kt @@ -7,7 +7,7 @@ import android.graphics.Color import android.os.Bundle import android.widget.SeekBar 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 com.simplemobiletools.flashlight.R @@ -21,7 +21,7 @@ class WidgetTorchConfigureActivity : SimpleActivity() { private var mWidgetId = 0 private var mWidgetColor = 0 private var mWidgetColorWithoutTransparency = 0 - private var mWidgetLockedDialog: WidgetLockedDialog? = null + private var mFeatureLockedDialog: FeatureLockedDialog? = null public override fun onCreate(savedInstanceState: Bundle?) { useDynamicTheme = false @@ -44,7 +44,7 @@ class WidgetTorchConfigureActivity : SimpleActivity() { config_widget_seekbar.setColors(getProperTextColor(), primaryColor, primaryColor) if (!isCustomizingColors && !isOrWasThankYouInstalled()) { - mWidgetLockedDialog = WidgetLockedDialog(this) { + mFeatureLockedDialog = FeatureLockedDialog(this) { if (!isOrWasThankYouInstalled()) { finish() } @@ -56,8 +56,8 @@ class WidgetTorchConfigureActivity : SimpleActivity() { super.onResume() window.decorView.setBackgroundColor(0) - if (mWidgetLockedDialog != null && isOrWasThankYouInstalled()) { - mWidgetLockedDialog?.dismissDialog() + if (mFeatureLockedDialog != null && isOrWasThankYouInstalled()) { + mFeatureLockedDialog?.dismissDialog() } }