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(
|
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)
|
||||||
|
@ -191,7 +190,6 @@ 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,7 +81,6 @@ 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
|
||||||
|
|
||||||
|
@ -90,7 +89,6 @@ 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, fn = ::buildEuiccInfoItems)
|
euiccChannelManager.withEuiccChannel(logicalSlotId, ::buildEuiccInfoItems)
|
||||||
|
|
||||||
swipeRefresh.isRefreshing = false
|
swipeRefresh.isRefreshing = false
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue