From 7eeb0b4d6fc58c3f48d7d7fbccac8a79eec09f5b Mon Sep 17 00:00:00 2001 From: andrekir Date: Sat, 13 May 2023 17:51:56 -0300 Subject: [PATCH] fix: revert to ChannelSet addSettings method without index fixes throwing Non-fatal Exception: java.lang.IndexOutOfBoundsException: Index: N, Size: n --- .../mesh/repository/datastore/ChannelSetRepository.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/geeksville/mesh/repository/datastore/ChannelSetRepository.kt b/app/src/main/java/com/geeksville/mesh/repository/datastore/ChannelSetRepository.kt index 74d0122b..746fdca2 100644 --- a/app/src/main/java/com/geeksville/mesh/repository/datastore/ChannelSetRepository.kt +++ b/app/src/main/java/com/geeksville/mesh/repository/datastore/ChannelSetRepository.kt @@ -53,7 +53,7 @@ class ChannelSetRepository @Inject constructor( preference.toBuilder().setSettings(channel.index, channel.settings).build() } } else { - preference.toBuilder().addSettings(channel.index, channel.settings).build() + preference.toBuilder().addSettings(channel.settings).build() } } return getAdminChannel()