diff --git a/app/build.gradle b/app/build.gradle index 169e3d9..fca6fa2 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -10,8 +10,8 @@ android { applicationId "me.lucky.wasted" minSdk 23 targetSdk 32 - versionCode 23 - versionName "1.3.3" + versionCode 24 + versionName "1.3.4" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } diff --git a/app/src/main/java/me/lucky/wasted/MainActivity.kt b/app/src/main/java/me/lucky/wasted/MainActivity.kt index 5301684..8251ec7 100644 --- a/app/src/main/java/me/lucky/wasted/MainActivity.kt +++ b/app/src/main/java/me/lucky/wasted/MainActivity.kt @@ -60,8 +60,9 @@ open class MainActivity : AppCompatActivity() { if (prefs.code == "") prefs.code = makeCode() updateCodeColorState() if (Build.VERSION.SDK_INT < Build.VERSION_CODES.P) hideESIM() - if (!packageManager.hasSystemFeature(PackageManager.FEATURE_SECURE_LOCK_SCREEN)) - hideSecureLockScreenRequired() + if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q && + !packageManager.hasSystemFeature(PackageManager.FEATURE_SECURE_LOCK_SCREEN)) + hideSecureLockScreenRequired() binding.apply { code.text = prefs.code wipeData.isChecked = prefs.isWipeData diff --git a/fastlane/metadata/android/en-US/changelogs/24.txt b/fastlane/metadata/android/en-US/changelogs/24.txt new file mode 100644 index 0000000..bff8f84 --- /dev/null +++ b/fastlane/metadata/android/en-US/changelogs/24.txt @@ -0,0 +1 @@ +fix wipe on inactivity not showing on Android before Q \ No newline at end of file