Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 83a80dd7 authored by SongFerng Wang's avatar SongFerng Wang Committed by Android (Google) Code Review
Browse files

Merge "Fix the DSDS dialog status" into main

parents 0f494572 74a76a80
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -221,6 +221,7 @@ class SimOnboardingActivity : SpaBaseDialogActivity() {
                        "showRestartDialog:${showRestartDialog.value}")
                showStartingDialog.value = false
            } else if (onboardingService.activeSubInfoList.isNotEmpty()) {
                Log.d(TAG, "status: showStartingDialog.value:${showStartingDialog.value}")
                showStartingDialog.value = true
            }
        }
@@ -468,11 +469,11 @@ class SimOnboardingActivity : SpaBaseDialogActivity() {
    }

    fun handleEnableMultiSimSidecarStateChange() {
        showDsdsProgressDialog.value = false
        when (enableMultiSimSidecar!!.state) {
            SidecarFragment.State.SUCCESS -> {
                enableMultiSimSidecar!!.reset()
                Log.i(TAG, "Successfully switched to DSDS without reboot.")
                showDsdsProgressDialog.value = false
                // refresh data
                initServiceData(this, onboardingService.targetSubId, callbackListener)
                startSimOnboardingProvider()
@@ -480,6 +481,7 @@ class SimOnboardingActivity : SpaBaseDialogActivity() {

            SidecarFragment.State.ERROR -> {
                enableMultiSimSidecar!!.reset()
                showDsdsProgressDialog.value = false
                Log.i(TAG, "Failed to switch to DSDS without rebooting.")
                showError.value = ErrorType.ERROR_ENABLE_DSDS
                callbackListener(CallbackType.CALLBACK_ERROR)