Fix crash - workaround

This commit is contained in:
Benoit Marty 2020-02-25 18:17:40 +01:00
parent b95dfa4473
commit a55e0f1af4

View File

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