diff --git a/app/build.gradle b/app/build.gradle index 3b5e694..d8424be 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -10,8 +10,8 @@ android { applicationId "uk.co.richyhbm.monochromatic" minSdkVersion 21 targetSdkVersion 28 - versionCode 15 - versionName "0.7.1" + versionCode 16 + versionName "0.8.0" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" vectorDrawables.useSupportLibrary = true } diff --git a/app/src/main/java/uk/co/richyhbm/monochromatic/Activities/QuickTilePreferencesActivity.kt b/app/src/main/java/uk/co/richyhbm/monochromatic/Activities/QuickTilePreferencesActivity.kt index 455e6d9..a30086c 100644 --- a/app/src/main/java/uk/co/richyhbm/monochromatic/Activities/QuickTilePreferencesActivity.kt +++ b/app/src/main/java/uk/co/richyhbm/monochromatic/Activities/QuickTilePreferencesActivity.kt @@ -19,13 +19,12 @@ class QuickTilePreferencesActivity : Activity() { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { val qsTile = intent.getParcelableExtra(Intent.EXTRA_COMPONENT_NAME) - Toast.makeText(applicationContext, R.string.toggling_please_wait, Toast.LENGTH_SHORT).show() - if (Permissions.hasSecureSettingsPermission(applicationContext)) { when (qsTile.className) { - DisableTempTile::class.java.name -> + DisableTempTile::class.java.name -> { + Toast.makeText(applicationContext, R.string.toggling_please_wait, Toast.LENGTH_SHORT).show() DisableMonochromeForSessionReceiver.disableForSession(applicationContext) - + } } } else { Toast.makeText(applicationContext, R.string.permission_missing, Toast.LENGTH_SHORT).show()