INNER CODE UNIT · Kotlin
ViewHolder
Keyspace-cloud/android · app/src/main/kotlin/cloud/keyspace/android/AddCard.kt:572
inner class ViewHolder (itemLayoutView: View) : RecyclerView.ViewHolder(itemLayoutView) {
var fieldName: EditText = itemLayoutView.findViewById<View>(R.id.field_name) as EditText
var fieldValue: EditText = itemLayoutView.findViewById<View>(R.id.field_value) as EditText
var deleteIcon: ImageView = itemLayoutView.findViewById<View>(R.id.deleteCustomFieldButton) as ImageView
var hideIcon: ImageView = itemLayoutView.findViewById<View>(R.id.hideCustomFieldButton) as ImageView
}
}
override fun onStop() {
super.onStop()
// force wipe keyring
keyring.XCHACHA_POLY1305_KEY?.fill(0)
keyring.ED25519_PUBLIC_KEY?.fill(0)
keyring.ED25519_PRIVATE_KEY?.fill(0)
// force gc to clear keyring
System.gc()