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

Commit 380a136e authored by Tom Hsu's avatar Tom Hsu Committed by Gerrit Code Review
Browse files

Merge "Settings: Fix force close for telephony callback exceeding limitation" into main

parents b83471f7 ef2e171b
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -245,7 +245,11 @@ public class MobileNetworkRepository extends SubscriptionManager.OnSubscriptions
    }

    private void createTelephonyManagerBySubId(int subId) {
        if (subId == SubscriptionManager.INVALID_SUBSCRIPTION_ID) {
        if (subId == SubscriptionManager.INVALID_SUBSCRIPTION_ID
                || mTelephonyCallbackMap.containsKey(subId)) {
            if (DEBUG) {
                Log.d(TAG, "createTelephonyManagerBySubId: directly return for subId = " + subId);
            }
            return;
        }
        PhoneCallStateTelephonyCallback