Skip to content

Commit

Permalink
Merge branch 'release/4.0.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
J-Jamet committed Sep 11, 2023
2 parents c6723ec + ef77c2a commit 798c95d
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 11 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -283,15 +283,23 @@ class KeeAutofillService : AutofillService() {

// Build response
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
responseBuilder.setAuthentication(
autofillIds,
intentSender,
Presentations.Builder().apply {
inlinePresentation?.let {
setInlinePresentation(it)
}
}.setDialogPresentation(remoteViewsUnlock).build()
)
try {
// Buggy method on some API 33 devices
responseBuilder.setAuthentication(
autofillIds,
intentSender,
Presentations.Builder().apply {
inlinePresentation?.let {
setInlinePresentation(it)
}
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)
Expand Down
1 change: 1 addition & 0 deletions fastlane/metadata/android/en-US/changelogs/125.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* Fix Autofill with API 33
1 change: 1 addition & 0 deletions fastlane/metadata/android/fr-FR/changelogs/125.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* Correction de l'Autofill avec l'API 33

0 comments on commit 798c95d

Please sign in to comment.