Merge branch 'release/4.0.2'

This commit is contained in:
J-Jamet
2023-09-11 21:55:48 +02:00
5 changed files with 24 additions and 11 deletions

View File

@@ -1,3 +1,6 @@
KeePassDX(4.0.2)
* Fix Autofill with API 33
KeePassDX(4.0.1)
* Fix back lock #1635 #1629 #1634
* Fix lock button in settings #1630

View File

@@ -12,8 +12,8 @@ android {
applicationId "com.kunzisoft.keepass"
minSdkVersion 15
targetSdkVersion 33
versionCode = 124
versionName = "4.0.1"
versionCode = 125
versionName = "4.0.2"
multiDexEnabled true
testApplicationId = "com.kunzisoft.keepass.tests"

View File

@@ -283,6 +283,8 @@ class KeeAutofillService : AutofillService() {
// Build response
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
try {
// Buggy method on some API 33 devices
responseBuilder.setAuthentication(
autofillIds,
intentSender,
@@ -290,8 +292,14 @@ class KeeAutofillService : AutofillService() {
inlinePresentation?.let {
setInlinePresentation(it)
}
}.setDialogPresentation(remoteViewsUnlock).build()
setDialogPresentation(remoteViewsUnlock)
}.build()
)
} catch (e: Exception) {
Log.e(TAG, "Unable to use the new setAuthentication method.", e)
@Suppress("DEPRECATION")
responseBuilder.setAuthentication(autofillIds, intentSender, remoteViewsUnlock, inlinePresentation)
}
} else {
@Suppress("DEPRECATION")
responseBuilder.setAuthentication(autofillIds, intentSender, remoteViewsUnlock, inlinePresentation)

View File

@@ -0,0 +1 @@
* Fix Autofill with API 33

View File

@@ -0,0 +1 @@
* Correction de l'Autofill avec l'API 33