Browse Source

ui: Ensure EuiccChannelManager is available in slot select fragment

Peter Cai 1 year ago
parent
commit
6458f54db2

+ 1 - 0
app-common/src/main/java/im/angry/openeuicc/ui/wizard/DownloadWizardSlotSelectFragment.kt

@@ -69,6 +69,7 @@ class DownloadWizardSlotSelectFragment : DownloadWizardActivity.DownloadWizardSt
 
 
     @SuppressLint("NotifyDataSetChanged")
     @SuppressLint("NotifyDataSetChanged")
     private suspend fun init() {
     private suspend fun init() {
+        ensureEuiccChannelManager()
         showProgressBar(-1)
         showProgressBar(-1)
         val slots = euiccChannelManager.flowEuiccPorts().map { (slotId, portId) ->
         val slots = euiccChannelManager.flowEuiccPorts().map { (slotId, portId) ->
             euiccChannelManager.withEuiccChannel(slotId, portId) { channel ->
             euiccChannelManager.withEuiccChannel(slotId, portId) { channel ->