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

Commit 02b1cb2f authored by Adnan Begovic's avatar Adnan Begovic
Browse files

Telecomm: Don't get default phones outside of phone process.

Change-Id: Ice8af20d2cea42db6bceb94363eda02224de7ce3
TICKET: CYNGNOS-2261
parent 971508df
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -29,7 +29,6 @@ import android.os.Vibrator;
import android.provider.Settings;

import android.text.TextUtils;
import com.android.internal.telephony.PhoneFactory;
import cyanogenmod.providers.CMSettings;

import android.telephony.SubscriptionManager;
@@ -232,7 +231,7 @@ final class Ringer extends CallsManagerListenerBase {
                // request the custom ringtone from the call and expect it to be current.

                String foregroundCallId = foregroundCall.getTargetPhoneAccount().getId();
                int phoneId = PhoneFactory.getDefaultPhone().getPhoneId();
                int phoneId = 0;
                // Also make sure that the id passed into the call object is a valid digit
                // before attempting to fetch the phone id from subscriptionmanager
                // (CYNGNOS-2261)