mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2025-12-04 15:49:33 +01:00
Fix date time selection
This commit is contained in:
@@ -54,7 +54,12 @@ class DateTimeEditView @JvmOverloads constructor(context: Context,
|
||||
if (entryExpiresCheckBox.isChecked)
|
||||
setOnDateClickListener?.invoke(dateTime)
|
||||
}
|
||||
entryExpiresCheckBox.setOnCheckedChangeListener { _, _ ->
|
||||
entryExpiresCheckBox.setOnCheckedChangeListener { _, isChecked ->
|
||||
mDateTime = if (isChecked) {
|
||||
DateInstant.IN_ONE_MONTH_DATE_TIME
|
||||
} else {
|
||||
DateInstant.NEVER_EXPIRES
|
||||
}
|
||||
assignExpiresDateText()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user