mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2026-11-25 11:31:39 -08:00
Try to fix custom field bug
This commit is contained in:
1 parent
1cfc86e5ce
commit
0d3d760a43
2 files changed
+8
-6
No files matched your search
@@ -309,15 +309,17 @@ class EntryContentsView @JvmOverloads constructor(context: Context,
|
||||
enableActionButton: Boolean,
|
||||
onActionClickListener: OnClickListener?) {
|
||||
|
||||
val entryCustomField = EntryCustomField(context, attrs, defStyle)
|
||||
entryCustomField.apply {
|
||||
val entryCustomField: EntryCustomField? = EntryCustomField(context, attrs, defStyle)
|
||||
entryCustomField?.apply {
|
||||
setLabel(title)
|
||||
setValue(value.toString(), value.isProtected)
|
||||
enableActionButton(enableActionButton)
|
||||
assignActionButtonClickListener(onActionClickListener)
|
||||
applyFontVisibility(fontInVisibility)
|
||||
}
|
||||
extrasView.addView(entryCustomField)
|
||||
entryCustomField?.let {
|
||||
extrasView.addView(it)
|
||||
}
|
||||
extrasContainerView.visibility = View.VISIBLE
|
||||
}
|
||||
|
||||
|
||||
@@ -29,9 +29,9 @@ import android.widget.TextView
|
||||
import androidx.core.content.ContextCompat
|
||||
import com.kunzisoft.keepass.R
|
||||
|
||||
open class EntryCustomField @JvmOverloads constructor(context: Context,
|
||||
attrs: AttributeSet? = null,
|
||||
defStyle: Int = 0)
|
||||
class EntryCustomField @JvmOverloads constructor(context: Context,
|
||||
attrs: AttributeSet? = null,
|
||||
defStyle: Int = 0)
|
||||
: LinearLayout(context, attrs, defStyle) {
|
||||
|
||||
private val labelView: TextView
|
||||
|
||||
Reference in new issue
Block a user