forked from PeterCxy/OpenEUICC
Compare commits
No commits in common. "multi-se" and "master" have entirely different histories.
3 changed files with 1 additions and 5 deletions
|
@ -174,7 +174,6 @@ open class DefaultEuiccChannelManager(
|
|||
override suspend fun <R> withEuiccChannel(
|
||||
physicalSlotId: Int,
|
||||
portId: Int,
|
||||
seId: Int,
|
||||
fn: suspend (EuiccChannel) -> R
|
||||
): R {
|
||||
val channel = findEuiccChannelByPort(physicalSlotId, portId)
|
||||
|
@ -191,7 +190,6 @@ open class DefaultEuiccChannelManager(
|
|||
|
||||
override suspend fun <R> withEuiccChannel(
|
||||
logicalSlotId: Int,
|
||||
seId: Int,
|
||||
fn: suspend (EuiccChannel) -> R
|
||||
): R {
|
||||
val channel = findEuiccChannelByLogicalSlot(logicalSlotId)
|
||||
|
|
|
@ -81,7 +81,6 @@ interface EuiccChannelManager {
|
|||
suspend fun <R> withEuiccChannel(
|
||||
physicalSlotId: Int,
|
||||
portId: Int,
|
||||
seId: Int = 0,
|
||||
fn: suspend (EuiccChannel) -> R
|
||||
): R
|
||||
|
||||
|
@ -90,7 +89,6 @@ interface EuiccChannelManager {
|
|||
*/
|
||||
suspend fun <R> withEuiccChannel(
|
||||
logicalSlotId: Int,
|
||||
seId: Int = 0,
|
||||
fn: suspend (EuiccChannel) -> R
|
||||
): R
|
||||
|
||||
|
|
|
@ -92,7 +92,7 @@ class EuiccInfoActivity : BaseEuiccAccessActivity(), OpenEuiccContextMarker {
|
|||
|
||||
lifecycleScope.launch {
|
||||
(infoList.adapter!! as EuiccInfoAdapter).euiccInfoItems =
|
||||
euiccChannelManager.withEuiccChannel(logicalSlotId, fn = ::buildEuiccInfoItems)
|
||||
euiccChannelManager.withEuiccChannel(logicalSlotId, ::buildEuiccInfoItems)
|
||||
|
||||
swipeRefresh.isRefreshing = false
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue