When typing a new label without pressing space but leaving the text field to proceed, the label will not be created. Adding a FocusChangedListener would help but doesn't work since the underlying EditText is encapsulated by the Chip-framework. See EditCredentialDataFragment.kt:114 (TODO)
/*
TODO doesn't work since editCredentialLabelsView.editText return a new ChipsInputEditText ll the time.
The origin is encapsulated in ChipsAdapter which is encapsulated in ChipsInput.
Need to fork that lib and change it,
editCredentialLabelsView.editText.setOnFocusChangeListener { view, focusGained ->
if (!focusGained) {
addLabel(editCredentialLabelsView.editText.editableText.toString(), editCredentialActivity)
}
}*/
When typing a new label without pressing space but leaving the text field to proceed, the label will not be created. Adding a FocusChangedListener would help but doesn't work since the underlying EditText is encapsulated by the Chip-framework. See EditCredentialDataFragment.kt:114 (TODO)