Browse Source

Remove unneeded seId default values

Peter Cai 1 month ago
parent
commit
fd79236591

+ 1 - 1
app-common/src/main/java/im/angry/openeuicc/core/DefaultEuiccChannelManager.kt

@@ -169,7 +169,7 @@ open class DefaultEuiccChannelManager(
 
 
     protected suspend fun findEuiccChannelByLogicalSlot(
     protected suspend fun findEuiccChannelByLogicalSlot(
         logicalSlotId: Int,
         logicalSlotId: Int,
-        seId: EuiccChannel.SecureElementId = EuiccChannel.SecureElementId.DEFAULT
+        seId: EuiccChannel.SecureElementId
     ): EuiccChannel? =
     ): EuiccChannel? =
         withContext(Dispatchers.IO) {
         withContext(Dispatchers.IO) {
             if (logicalSlotId == EuiccChannelManager.USB_CHANNEL_ID) {
             if (logicalSlotId == EuiccChannelManager.USB_CHANNEL_ID) {

+ 1 - 1
app/src/main/java/im/angry/openeuicc/core/PrivilegedEuiccChannelManager.kt

@@ -34,7 +34,7 @@ class PrivilegedEuiccChannelManager(appContainer: AppContainer, context: Context
     }
     }
 
 
     override suspend fun notifyEuiccProfilesChanged(logicalSlotId: Int) {
     override suspend fun notifyEuiccProfilesChanged(logicalSlotId: Int) {
-        val channel = findEuiccChannelByLogicalSlot(logicalSlotId) ?: return
+        val channel = findEuiccChannelByLogicalSlot(logicalSlotId, EuiccChannel.SecureElementId.DEFAULT) ?: return
         appContainer.subscriptionManager.tryRefreshCachedEuiccInfo(channel.cardId)
         appContainer.subscriptionManager.tryRefreshCachedEuiccInfo(channel.cardId)
     }
     }
 }
 }