mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2025-12-04 15:49:33 +01:00
Fix focus
This commit is contained in:
@@ -45,7 +45,7 @@
|
||||
android:label="@string/app_name"
|
||||
android:launchMode="singleTop"
|
||||
android:configChanges="keyboardHidden"
|
||||
android:windowSoftInputMode="stateHidden" >
|
||||
android:windowSoftInputMode="stateHidden|stateAlwaysHidden" >
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
<category android:name="android.intent.category.LAUNCHER" />
|
||||
|
||||
@@ -268,7 +268,7 @@ open class PasswordActivity : DatabaseModeActivity(), AdvancedUnlockFragment.Bui
|
||||
if (result.isSuccess) {
|
||||
launchGroupActivityIfLoaded(database)
|
||||
} else {
|
||||
passwordView?.requestFocus()
|
||||
passwordView?.requestFocusFromTouch()
|
||||
|
||||
var resultError = ""
|
||||
val resultException = result.exception
|
||||
@@ -443,9 +443,8 @@ open class PasswordActivity : DatabaseModeActivity(), AdvancedUnlockFragment.Bui
|
||||
|
||||
// Auto select the password field and open keyboard
|
||||
passwordView?.requestFocusFromTouch()
|
||||
val imm: InputMethodManager? =
|
||||
getSystemService(INPUT_METHOD_SERVICE) as? InputMethodManager?
|
||||
imm?.showSoftInput(passwordView, InputMethodManager.SHOW_IMPLICIT)
|
||||
val inputMethodManager = getSystemService(INPUT_METHOD_SERVICE) as? InputMethodManager?
|
||||
inputMethodManager?.showSoftInput(passwordView, InputMethodManager.SHOW_IMPLICIT)
|
||||
}
|
||||
|
||||
private fun enableOrNotTheConfirmationButton() {
|
||||
|
||||
@@ -160,6 +160,8 @@
|
||||
android:inputType="textPassword"
|
||||
android:importantForAccessibility="no"
|
||||
android:importantForAutofill="yes"
|
||||
android:focusable="true"
|
||||
android:focusableInTouchMode="true"
|
||||
android:autofillHints="password"
|
||||
android:imeOptions="actionDone|flagNoPersonalizedLearning"
|
||||
android:maxLines="1"/>
|
||||
|
||||
Reference in New Issue
Block a user