We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ChipInputAutoCompleteTextView
1 parent d9946bb commit 4a19081Copy full SHA for 4a19081
CHANGELOG.md
@@ -6,6 +6,7 @@
6
7
- Handle window insets when displaying app content in edge-to-edge
8
- Enable edge-to-edge support on all versions of Android
9
+- Handle nullable inputs when removing last chip in the `ChipInputAutoCompleteTextView`
10
11
## 2025.05.20
12
app/src/main/java/org/simple/clinic/widgets/ChipInputAutoCompleteTextView.kt
@@ -164,7 +164,7 @@ class ChipInputAutoCompleteTextView(
164
}
165
166
private fun removeLastChip() {
167
- val lastInput = inputs.last()
+ val lastInput = inputs.lastOrNull() ?: return
168
val lastChip = rootView
169
.children
170
.filterIsInstance<Chip>()
0 commit comments