Refresh system Euicc cache every time our UI is refreshed
This commit is contained in:
parent
67d03a0696
commit
3013609ff5
|
@ -19,6 +19,8 @@ import com.truphone.lpad.progress.Progress
|
||||||
import im.angry.openeuicc.R
|
import im.angry.openeuicc.R
|
||||||
import im.angry.openeuicc.databinding.EuiccProfileBinding
|
import im.angry.openeuicc.databinding.EuiccProfileBinding
|
||||||
import im.angry.openeuicc.databinding.FragmentEuiccBinding
|
import im.angry.openeuicc.databinding.FragmentEuiccBinding
|
||||||
|
import im.angry.openeuicc.util.openEuiccApplication
|
||||||
|
import im.angry.openeuicc.util.tryRefreshCachedEuiccInfo
|
||||||
import kotlinx.coroutines.Dispatchers
|
import kotlinx.coroutines.Dispatchers
|
||||||
import kotlinx.coroutines.launch
|
import kotlinx.coroutines.launch
|
||||||
import kotlinx.coroutines.withContext
|
import kotlinx.coroutines.withContext
|
||||||
|
@ -74,6 +76,7 @@ class EuiccManagementFragment : Fragment(), EuiccFragmentMarker, EuiccProfilesCh
|
||||||
|
|
||||||
lifecycleScope.launch {
|
lifecycleScope.launch {
|
||||||
val profiles = withContext(Dispatchers.IO) {
|
val profiles = withContext(Dispatchers.IO) {
|
||||||
|
openEuiccApplication.subscriptionManager.tryRefreshCachedEuiccInfo(channel.cardId)
|
||||||
channel.lpa.profiles
|
channel.lpa.profiles
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue