瀏覽代碼

revert back to calling enableProfile directly

Disabling without refreshing causes issues on eSTK.me
Peter Cai 1 年之前
父節點
當前提交
113cc1b4cf
共有 1 個文件被更改,包括 0 次插入3 次删除
  1. 0 3
      app-common/src/main/java/im/angry/openeuicc/ui/EuiccManagementFragment.kt

+ 0 - 3
app-common/src/main/java/im/angry/openeuicc/ui/EuiccManagementFragment.kt

@@ -130,9 +130,6 @@ open class EuiccManagementFragment : Fragment(), EuiccProfilesChangedListener,
         lifecycleScope.launch {
             beginTrackedOperation {
                 val res = if (enable) {
-                    // Disable any active profile first, but don't do a refresh and ignore
-                    // any errors -- we only error if the enabling action fails
-                    channel.lpa.disableActiveProfile(false)
                     channel.lpa.enableProfile(iccid)
                 } else {
                     channel.lpa.disableProfile(iccid)