forked from PeterCxy/OpenEUICC
Compare commits
1 commit
Author | SHA1 | Date | |
---|---|---|---|
6bb05d910b |
3 changed files with 5 additions and 1 deletions
|
@ -174,6 +174,7 @@ open class DefaultEuiccChannelManager(
|
|||
override suspend fun <R> withEuiccChannel(
|
||||
physicalSlotId: Int,
|
||||
portId: Int,
|
||||
seId: Int,
|
||||
fn: suspend (EuiccChannel) -> R
|
||||
): R {
|
||||
val channel = findEuiccChannelByPort(physicalSlotId, portId)
|
||||
|
@ -190,6 +191,7 @@ open class DefaultEuiccChannelManager(
|
|||
|
||||
override suspend fun <R> withEuiccChannel(
|
||||
logicalSlotId: Int,
|
||||
seId: Int,
|
||||
fn: suspend (EuiccChannel) -> R
|
||||
): R {
|
||||
val channel = findEuiccChannelByLogicalSlot(logicalSlotId)
|
||||
|
|
|
@ -81,6 +81,7 @@ interface EuiccChannelManager {
|
|||
suspend fun <R> withEuiccChannel(
|
||||
physicalSlotId: Int,
|
||||
portId: Int,
|
||||
seId: Int = 0,
|
||||
fn: suspend (EuiccChannel) -> R
|
||||
): R
|
||||
|
||||
|
@ -89,6 +90,7 @@ 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, ::buildEuiccInfoItems)
|
||||
euiccChannelManager.withEuiccChannel(logicalSlotId, fn = ::buildEuiccInfoItems)
|
||||
|
||||
swipeRefresh.isRefreshing = false
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue