Fix crash - workaround

This commit is contained in:
Benoit Marty 2020-02-25 18:17:40 +01:00
parent b95dfa4473
commit a55e0f1af4
1 changed files with 1 additions and 1 deletions

View File

@ -142,7 +142,7 @@ class CreateDirectRoomKnownUsersFragment @Inject constructor(
if (data.isAdded) {
addChipToGroup(data.user, chipGroup)
} else {
if (chipGroup.size > data.index) {
if (data.index in 0..chipGroup.size) {
chipGroup.removeViewAt(data.index)
}
}