mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2025-12-04 15:49:33 +01:00
fix: Null
This commit is contained in:
@@ -36,7 +36,7 @@ class AdvancedUnlockInfoView @JvmOverloads constructor(context: Context,
|
|||||||
defStyle: Int = 0)
|
defStyle: Int = 0)
|
||||||
: LinearLayout(context, attrs, defStyle) {
|
: LinearLayout(context, attrs, defStyle) {
|
||||||
|
|
||||||
private var biometricButtonView: Button
|
private var biometricButtonView: Button? = null
|
||||||
|
|
||||||
init {
|
init {
|
||||||
val inflater = context.getSystemService(Context.LAYOUT_INFLATER_SERVICE) as LayoutInflater?
|
val inflater = context.getSystemService(Context.LAYOUT_INFLATER_SERVICE) as LayoutInflater?
|
||||||
@@ -46,15 +46,15 @@ class AdvancedUnlockInfoView @JvmOverloads constructor(context: Context,
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun setIconViewClickListener(listener: OnClickListener?) {
|
fun setIconViewClickListener(listener: OnClickListener?) {
|
||||||
biometricButtonView.setOnClickListener(listener)
|
biometricButtonView?.setOnClickListener(listener)
|
||||||
}
|
}
|
||||||
|
|
||||||
var title: CharSequence
|
var title: CharSequence
|
||||||
get() {
|
get() {
|
||||||
return biometricButtonView.text?.toString() ?: ""
|
return biometricButtonView?.text?.toString() ?: ""
|
||||||
}
|
}
|
||||||
set(value) {
|
set(value) {
|
||||||
biometricButtonView.text = value
|
biometricButtonView?.text = value
|
||||||
}
|
}
|
||||||
|
|
||||||
fun setTitle(@StringRes textId: Int) {
|
fun setTitle(@StringRes textId: Int) {
|
||||||
|
|||||||
Reference in New Issue
Block a user