mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2026-11-30 13:52:58 -08:00
Change focus timestamp variable
This commit is contained in:
1 parent
9f6234f032
commit
6e055f398d
1 file changed
+6
-1
@@ -167,7 +167,7 @@ class EntryExtraFieldsItemsAdapter(context: Context)
|
||||
}
|
||||
|
||||
private fun focusedTimestampNotExpired(): Boolean {
|
||||
return mLastFocusedTimestamp == 0L || (mLastFocusedTimestamp + 350L) > System.currentTimeMillis()
|
||||
return mLastFocusedTimestamp == 0L || (mLastFocusedTimestamp + FOCUS_TIMESTAMP) > System.currentTimeMillis()
|
||||
}
|
||||
|
||||
fun getFocusedField(): FocusedEditField {
|
||||
@@ -179,4 +179,9 @@ class EntryExtraFieldsItemsAdapter(context: Context)
|
||||
var extraFieldValue: EditTextSelectable = itemView.findViewById(R.id.entry_extra_field_value)
|
||||
var extraFieldDeleteButton: View = itemView.findViewById(R.id.entry_extra_field_delete)
|
||||
}
|
||||
|
||||
companion object {
|
||||
// time to focus element when a keyboard appears
|
||||
private const val FOCUS_TIMESTAMP = 400L
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user