mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2025-12-04 15:49:33 +01:00
Fix notification in older android versions
This commit is contained in:
@@ -41,7 +41,7 @@ class DatabaseKDB : DatabaseVersioned<Int, UUID, GroupKDB, EntryKDB>() {
|
||||
private var kdfListV3: MutableList<KdfEngine> = ArrayList()
|
||||
|
||||
override val version: String
|
||||
get() = "KeePass 1"
|
||||
get() = "V1"
|
||||
|
||||
init {
|
||||
kdfListV3.add(KdfFactory.aesKdf)
|
||||
|
||||
@@ -156,7 +156,7 @@ class DatabaseKDBX : DatabaseVersioned<UUID, UUID, GroupKDBX, EntryKDBX> {
|
||||
FILE_VERSION_41 -> "4.1"
|
||||
else -> "UNKNOWN"
|
||||
}
|
||||
return "KeePass 2 - KDBX$kdbxStringVersion"
|
||||
return "V2 - KDBX$kdbxStringVersion"
|
||||
}
|
||||
|
||||
override val kdfEngine: KdfEngine?
|
||||
|
||||
@@ -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)
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user