The Application object may not have been freed between finishing activities and starting the next one. In this case, the stale channels will still be present in the repository, causing a crash.
@@ -46,6 +46,7 @@ class OmapiEuiccChannelRepository(private val context: Context) : EuiccChannelRe
}
override suspend fun load() {
+ channels.clear()
val service = connectSEService()
for (slotId in 1..3) {