Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e60f98fd authored by Peter Cai's avatar Peter Cai
Browse files

fix: Don't even try to open channels on multiple SEs unless vendor implementation exists

parent 31991c90
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -100,9 +100,10 @@ open class DefaultEuiccChannelManager(
                    ret.add(channel)
                    openedAids.add(aid)

                    // This only exists because the UI side doesn't yet support multi-SE over USB readers properly.
                    // TODO: Fix that and remove this.
                    if (!supportsMultiSE) {
                    // Don't try opening more than 1 channel unless we support multi SE or
                    // there is a vendor implementation for deciding when we should stop
                    // opening more channels
                    if (!supportsMultiSE || vendorDecider == null) {
                        break@outer
                    }
                }