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

Commit bd855122 authored by Thomas Stuart's avatar Thomas Stuart
Browse files

update DSDS call preference logs (2/2)

User experienced a bug where the "Ask Every Time" call preference
was not working properly.   Expected: prompt the user on which SIM
they want to use for an outgoing call but Actual: no prompt.

There was not enough information in the bug report to determine the
issue, nor was the bug reproducible.

Hence, some more logging statements have been added to help pinpoint
the cause.

bug: 198123192
Test: none
Change-Id: I55407959def6307940bc23fecfc37d36ccefaa62
parent eed03c14
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -2839,16 +2839,21 @@ public class SubscriptionController extends ISub.Stub {

        TelecomManager telecomManager = mContext.getSystemService(TelecomManager.class);
        PhoneAccountHandle currentHandle = telecomManager.getUserSelectedOutgoingPhoneAccount();
        logd("[setDefaultVoiceSubId] current phoneAccountHandle=" + currentHandle);

        if (!Objects.equals(currentHandle, newHandle)) {
            telecomManager.setUserSelectedOutgoingPhoneAccount(newHandle);
            logd("[setDefaultVoiceSubId] change to phoneAccountHandle=" + newHandle);
        } else {
            logd("[setDefaultVoiceSubId] default phone account not changed");
            logd("[setDefaultVoiceSubId] default phoneAccountHandle not changed.");
        }

        if (previousDefaultSub != getDefaultSubId()) {
            sendDefaultChangedBroadcast(getDefaultSubId());
            logd(String.format("[setDefaultVoiceSubId] change to subId=%d", getDefaultSubId()));
        } else {
            logd(String.format("[setDefaultVoiceSubId] default subId not changed. subId=%d",
                    previousDefaultSub));
        }
    }