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

Commit 39884db7 authored by Tyler Gunn's avatar Tyler Gunn Committed by Android (Google) Code Review
Browse files

Merge "Check for FEATURE_TELEPHONY_SUBSCRIPTION for new SubscriptionMgr API calls." into main

parents 92ca5921 68b26b29
Loading
Loading
Loading
Loading
+10 −5
Original line number Diff line number Diff line
@@ -2188,6 +2188,10 @@ public class CallsManager extends Call.ListenerBase
                            // At some point, Telecom and Telephony are out of sync with the default
                            // outgoing calling account.
                            if(mFeatureFlags.telephonyHasDefaultButTelecomDoesNot()) {
                                // SubscriptionManager will throw if FEATURE_TELEPHONY_SUBSCRIPTION
                                // is not present.
                                if (mContext.getPackageManager().hasSystemFeature(
                                        PackageManager.FEATURE_TELEPHONY_SUBSCRIPTION)) {
                                    if (SubscriptionManager.getDefaultVoiceSubscriptionId() !=
                                            SubscriptionManager.INVALID_SUBSCRIPTION_ID) {
                                        mAnomalyReporter.reportAnomaly(
@@ -2195,6 +2199,7 @@ public class CallsManager extends Call.ListenerBase
                                                TELEPHONY_HAS_DEFAULT_BUT_TELECOM_DOES_NOT_MSG);
                                    }
                                }
                            }

                            // This is the state where the user is expected to select an account
                            callToPlace.setState(CallState.SELECT_PHONE_ACCOUNT,
+6 −1
Original line number Diff line number Diff line
@@ -1841,7 +1841,12 @@ public class PhoneAccountRegistrar {
            } else {
                pw.println(defaultOutgoing);
            }
            pw.println("defaultVoiceSubId: " + SubscriptionManager.getDefaultVoiceSubscriptionId());
            // SubscriptionManager will throw if FEATURE_TELEPHONY_SUBSCRIPTION is not present.
            if (mContext.getPackageManager().hasSystemFeature(
                    PackageManager.FEATURE_TELEPHONY_SUBSCRIPTION)) {
                pw.println("defaultVoiceSubId: "
                        + SubscriptionManager.getDefaultVoiceSubscriptionId());
            }
            pw.println("simCallManager: " + getSimCallManager(mCurrentUserHandle));
            pw.println("phoneAccounts:");
            pw.increaseIndent();