Skip to content

Commit

Permalink
Merge branch 'release/4.0.5'
Browse files Browse the repository at this point in the history
  • Loading branch information
J-Jamet committed Nov 9, 2023
2 parents 28ccaff + 9dd4d77 commit ac15908
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 12 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
KeePassDX(4.0.5)
* Fix form filled recognition #1572 #1508
* Rollback password color #1686 #1490

KeePassDX(4.0.4)
* Fix form filled recognition #1572 #1677
* Fix device unlock #1682
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 = 127
versionName = "4.0.4"
versionCode = 128
versionName = "4.0.5"
multiDexEnabled true

testApplicationId = "com.kunzisoft.keepass.tests"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,23 +131,28 @@ class StructureParser(private val structure: AssistStructure) {
val autofillId = node.autofillId
node.autofillHints?.forEach {
when {
it.contains(View.AUTOFILL_HINT_USERNAME, true) -> {
result?.usernameId = autofillId
result?.usernameValue = node.autofillValue
Log.d(TAG, "Autofill username hint")
}
it.contains(View.AUTOFILL_HINT_USERNAME, true)
|| it.contains(View.AUTOFILL_HINT_EMAIL_ADDRESS, true)
|| it.contains("email", true)
|| it.contains(View.AUTOFILL_HINT_PHONE, true) -> {
// Priority to username or add if null
// Replace username until we have a password
if (result?.passwordId == null) {
result?.usernameId = autofillId
result?.usernameValue = node.autofillValue
Log.d(TAG, "Autofill username hint if no password")
} else {
usernameIdCandidate = autofillId
usernameValueCandidate = node.autofillValue
Log.d(TAG, "Autofill email hint")
Log.d(TAG, "Autofill username hint if password")
}
}
it.contains(View.AUTOFILL_HINT_PASSWORD, true) -> {
// Password Id changed if it's the second times we are here,
// So the last username candidate is most appropriate
if (result?.passwordId != null) {
result?.usernameId = usernameIdCandidate
result?.usernameValue = usernameValueCandidate
}
result?.passwordId = autofillId
result?.passwordValue = node.autofillValue
Log.d(TAG, "Autofill password hint")
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/java/com/kunzisoft/keepass/view/PassKeyView.kt
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ class PassKeyView @JvmOverloads constructor(context: Context,
}

override fun afterTextChanged(editable: Editable) {
/* Fixme 1686
if (textModified) {
textModified = false
} else {
Expand All @@ -121,7 +122,7 @@ class PassKeyView @JvmOverloads constructor(context: Context,
val selectionEnd = passwordText.selectionEnd
passwordString = editable.toString()
passwordText.setSelection(selectionStart, selectionEnd)
}
}*/
mPasswordTextWatchers.forEach {
it.afterTextChanged(editable)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ class TextEditFieldView @JvmOverloads constructor(context: Context,
// Manually write view to avoid view id bugs
buildViews()
// To change the password color dynamically
/* Fixme 1686
valueView.doAfterTextChanged { editable ->
editable?.let { text ->
if (textModified) {
Expand All @@ -92,11 +93,11 @@ class TextEditFieldView @JvmOverloads constructor(context: Context,
textModified = true
val selectionStart = valueView.selectionStart
val selectionEnd = valueView.selectionEnd
value = spannableValue(text.toString()).toString()
value = text.toString()
valueView.setSelection(selectionStart, selectionEnd)
}
}
}
}*/
labelView.addView(valueView)
addView(labelView)
addView(actionImageButton)
Expand Down
2 changes: 2 additions & 0 deletions fastlane/metadata/android/en-US/changelogs/128.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
* Fix form filled recognition #1572 #1508
* Rollback password color #1686 #1490
2 changes: 2 additions & 0 deletions fastlane/metadata/android/fr-FR/changelogs/128.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
* Correction de la reconnaissance de formulaire #1572 #1508
* Rollback de la couleur de mot de passe #1686 #1490

0 comments on commit ac15908

Please sign in to comment.