diff --git a/app/build.gradle b/app/build.gradle index e1b8de21f..bf7a4adf9 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -5,12 +5,12 @@ apply plugin: 'kotlin-kapt' android { namespace 'com.kunzisoft.keepass' - compileSdkVersion 34 + compileSdkVersion 36 defaultConfig { applicationId "com.kunzisoft.keepass" minSdkVersion 19 - targetSdkVersion 34 + targetSdkVersion 35 versionCode = 139 versionName = "4.1.7" multiDexEnabled true diff --git a/app/src/main/java/com/kunzisoft/keepass/activities/AboutActivity.kt b/app/src/main/java/com/kunzisoft/keepass/activities/AboutActivity.kt index a2a7250c5..c07cc8c4a 100644 --- a/app/src/main/java/com/kunzisoft/keepass/activities/AboutActivity.kt +++ b/app/src/main/java/com/kunzisoft/keepass/activities/AboutActivity.kt @@ -57,7 +57,7 @@ class AboutActivity : StylishActivity() { var version: String var build: String try { - version = packageManager.getPackageInfoCompat(packageName).versionName + version = packageManager.getPackageInfoCompat(packageName).versionName ?: "" build = BuildConfig.BUILD_VERSION } catch (e: NameNotFoundException) { Log.w(javaClass.simpleName, "Unable to get the app or the build version", e) diff --git a/app/src/main/java/com/kunzisoft/keepass/activities/GroupActivity.kt b/app/src/main/java/com/kunzisoft/keepass/activities/GroupActivity.kt index eb6726cd8..6e2e063f5 100644 --- a/app/src/main/java/com/kunzisoft/keepass/activities/GroupActivity.kt +++ b/app/src/main/java/com/kunzisoft/keepass/activities/GroupActivity.kt @@ -1457,7 +1457,8 @@ class GroupActivity : DatabaseLockActivity(), } else -> { // Load the previous group - loadMainGroup(mPreviousGroupsIds.removeLast()) + loadMainGroup(mPreviousGroupsIds + .removeAt(mPreviousGroupsIds.lastIndex)) } } } diff --git a/app/src/main/java/com/kunzisoft/keepass/services/NotificationService.kt b/app/src/main/java/com/kunzisoft/keepass/services/NotificationService.kt index f116eaf60..4d7fae28c 100644 --- a/app/src/main/java/com/kunzisoft/keepass/services/NotificationService.kt +++ b/app/src/main/java/com/kunzisoft/keepass/services/NotificationService.kt @@ -12,6 +12,7 @@ import android.content.pm.ServiceInfo.FOREGROUND_SERVICE_TYPE_NONE import android.content.pm.ServiceInfo.FOREGROUND_SERVICE_TYPE_SPECIAL_USE import android.os.Build import android.os.IBinder +import android.util.Log import android.util.TypedValue import android.widget.Toast import androidx.core.app.NotificationCompat @@ -156,11 +157,21 @@ abstract class NotificationService : Service() { mReset = true } - override fun onDestroy() { + override fun onTimeout(startId: Int, fgsType: Int) { + super.onTimeout(startId, fgsType) + Log.e(javaClass::class.simpleName, "The service took too long to execute") + cancelNotification() + stopSelf() + } + + protected fun cancelNotification() { mTimerJob?.cancel() mTimerJob = null notificationManager?.cancel(notificationId) + } + override fun onDestroy() { + cancelNotification() super.onDestroy() } diff --git a/app/src/main/res/layout/activity_about.xml b/app/src/main/res/layout/activity_about.xml index d956bfc9d..b0211987e 100644 --- a/app/src/main/res/layout/activity_about.xml +++ b/app/src/main/res/layout/activity_about.xml @@ -19,10 +19,11 @@ --> + android:filterTouchesWhenObscured="true"> + android:filterTouchesWhenObscured="true"> . --> - + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="711900039" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="427912623" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> - - + android:maxLongVersionCode="711900039" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + + android:maxLongVersionCode="10000000000" /> + + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="2015836711" /> + android:maxLongVersionCode="2015849447" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> - + android:maxLongVersionCode="10000000000" /> diff --git a/crypto/build.gradle b/crypto/build.gradle index 16874fa45..e299deaab 100644 --- a/crypto/build.gradle +++ b/crypto/build.gradle @@ -5,12 +5,12 @@ plugins { android { namespace 'com.kunzisoft.encrypt' - compileSdkVersion 34 + compileSdkVersion 36 ndkVersion "21.4.7075529" defaultConfig { minSdkVersion 19 - targetSdkVersion 34 + targetSdkVersion 35 multiDexEnabled true testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" diff --git a/database/build.gradle b/database/build.gradle index b162fa086..f2063e666 100644 --- a/database/build.gradle +++ b/database/build.gradle @@ -4,11 +4,11 @@ apply plugin: 'kotlin-parcelize' android { namespace 'com.kunzisoft.keepass.database' - compileSdkVersion 34 + compileSdkVersion 36 defaultConfig { minSdkVersion 19 - targetSdk 34 + targetSdk 35 testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } diff --git a/icon-pack/build.gradle b/icon-pack/build.gradle index 83b7fa8ec..fe486ae76 100644 --- a/icon-pack/build.gradle +++ b/icon-pack/build.gradle @@ -3,11 +3,11 @@ apply plugin: 'kotlin-android' android { namespace 'com.kunzisoft.keepass.icon' - compileSdkVersion 34 + compileSdkVersion 36 defaultConfig { minSdkVersion 19 - targetSdkVersion 34 + targetSdkVersion 35 } compileOptions { diff --git a/icon-pack/classic/build.gradle b/icon-pack/classic/build.gradle index 6fcd807bc..f5a2baaad 100644 --- a/icon-pack/classic/build.gradle +++ b/icon-pack/classic/build.gradle @@ -2,11 +2,11 @@ apply plugin: 'com.android.library' android { namespace 'com.kunzisoft.keepass.icon.classic' - compileSdkVersion 34 + compileSdkVersion 36 defaultConfig { minSdkVersion 19 - targetSdkVersion 34 + targetSdkVersion 35 } resourcePrefix 'classic_' diff --git a/icon-pack/material/build.gradle b/icon-pack/material/build.gradle index b17b7ebee..bfb426dfe 100644 --- a/icon-pack/material/build.gradle +++ b/icon-pack/material/build.gradle @@ -2,11 +2,11 @@ apply plugin: 'com.android.library' android { namespace 'com.kunzisoft.keepass.icon.material' - compileSdkVersion 34 + compileSdkVersion 36 defaultConfig { minSdkVersion 19 - targetSdkVersion 34 + targetSdkVersion 35 } resourcePrefix 'material_'