diff --git a/app/src/main/java/com/kunzisoft/keepass/database/element/database/DatabaseKDB.kt b/app/src/main/java/com/kunzisoft/keepass/database/element/database/DatabaseKDB.kt index 0eef5ace4..24e9f9d56 100644 --- a/app/src/main/java/com/kunzisoft/keepass/database/element/database/DatabaseKDB.kt +++ b/app/src/main/java/com/kunzisoft/keepass/database/element/database/DatabaseKDB.kt @@ -41,7 +41,7 @@ class DatabaseKDB : DatabaseVersioned() { private var kdfListV3: MutableList = ArrayList() override val version: String - get() = "KeePass 1" + get() = "V1" init { kdfListV3.add(KdfFactory.aesKdf) diff --git a/app/src/main/java/com/kunzisoft/keepass/database/element/database/DatabaseKDBX.kt b/app/src/main/java/com/kunzisoft/keepass/database/element/database/DatabaseKDBX.kt index e254f20a8..e42570881 100644 --- a/app/src/main/java/com/kunzisoft/keepass/database/element/database/DatabaseKDBX.kt +++ b/app/src/main/java/com/kunzisoft/keepass/database/element/database/DatabaseKDBX.kt @@ -156,7 +156,7 @@ class DatabaseKDBX : DatabaseVersioned { FILE_VERSION_41 -> "4.1" else -> "UNKNOWN" } - return "KeePass 2 - KDBX$kdbxStringVersion" + return "V2 - KDBX$kdbxStringVersion" } override val kdfEngine: KdfEngine? diff --git a/app/src/main/java/com/kunzisoft/keepass/services/DatabaseTaskNotificationService.kt b/app/src/main/java/com/kunzisoft/keepass/services/DatabaseTaskNotificationService.kt index 98f2fca94..fbb0ee680 100644 --- a/app/src/main/java/com/kunzisoft/keepass/services/DatabaseTaskNotificationService.kt +++ b/app/src/main/java/com/kunzisoft/keepass/services/DatabaseTaskNotificationService.kt @@ -434,10 +434,13 @@ open class DatabaseTaskNotificationService : LockNotificationService(), Progress R.drawable.ic_lock_database_white_32dp, getString(R.string.lock), pendingDeleteIntent ) - setStyle( - NotificationCompat.MediaStyle() - .setShowActionsInCompactView(0) - ) + // Won't work with Xiaomi and Kitkat + if (Build.VERSION.SDK_INT > Build.VERSION_CODES.R) { + setStyle( + NotificationCompat.MediaStyle() + .setShowActionsInCompactView(0) + ) + } } } }