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(
|
override suspend fun <R> withEuiccChannel(
|
||||||
physicalSlotId: Int,
|
physicalSlotId: Int,
|
||||||
portId: Int,
|
portId: Int,
|
||||||
|
seId: Int,
|
||||||
fn: suspend (EuiccChannel) -> R
|
fn: suspend (EuiccChannel) -> R
|
||||||
): R {
|
): R {
|
||||||
val channel = findEuiccChannelByPort(physicalSlotId, portId)
|
val channel = findEuiccChannelByPort(physicalSlotId, portId)
|
||||||
|
@ -190,6 +191,7 @@ open class DefaultEuiccChannelManager(
|
||||||
|
|
||||||
override suspend fun <R> withEuiccChannel(
|
override suspend fun <R> withEuiccChannel(
|
||||||
logicalSlotId: Int,
|
logicalSlotId: Int,
|
||||||
|
seId: Int,
|
||||||
fn: suspend (EuiccChannel) -> R
|
fn: suspend (EuiccChannel) -> R
|
||||||
): R {
|
): R {
|
||||||
val channel = findEuiccChannelByLogicalSlot(logicalSlotId)
|
val channel = findEuiccChannelByLogicalSlot(logicalSlotId)
|
||||||
|
|
|
@ -81,6 +81,7 @@ interface EuiccChannelManager {
|
||||||
suspend fun <R> withEuiccChannel(
|
suspend fun <R> withEuiccChannel(
|
||||||
physicalSlotId: Int,
|
physicalSlotId: Int,
|
||||||
portId: Int,
|
portId: Int,
|
||||||
|
seId: Int = 0,
|
||||||
fn: suspend (EuiccChannel) -> R
|
fn: suspend (EuiccChannel) -> R
|
||||||
): R
|
): R
|
||||||
|
|
||||||
|
@ -89,6 +90,7 @@ interface EuiccChannelManager {
|
||||||
*/
|
*/
|
||||||
suspend fun <R> withEuiccChannel(
|
suspend fun <R> withEuiccChannel(
|
||||||
logicalSlotId: Int,
|
logicalSlotId: Int,
|
||||||
|
seId: Int = 0,
|
||||||
fn: suspend (EuiccChannel) -> R
|
fn: suspend (EuiccChannel) -> R
|
||||||
): R
|
): R
|
||||||
|
|
||||||
|
|
|
@ -92,7 +92,7 @@ class EuiccInfoActivity : BaseEuiccAccessActivity(), OpenEuiccContextMarker {
|
||||||
|
|
||||||
lifecycleScope.launch {
|
lifecycleScope.launch {
|
||||||
(infoList.adapter!! as EuiccInfoAdapter).euiccInfoItems =
|
(infoList.adapter!! as EuiccInfoAdapter).euiccInfoItems =
|
||||||
euiccChannelManager.withEuiccChannel(logicalSlotId, ::buildEuiccInfoItems)
|
euiccChannelManager.withEuiccChannel(logicalSlotId, fn = ::buildEuiccInfoItems)
|
||||||
|
|
||||||
swipeRefresh.isRefreshing = false
|
swipeRefresh.isRefreshing = false
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue