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

Commit 234c7ca2 authored by sqian's avatar sqian Committed by android-build-merger
Browse files

Merge "Fix PhoneSwitcher crash" am: 7627e94f am: 970e15de

am: 841f430a

Change-Id: I914f4750a568d28e89b6f0c97a62fcfaed8bd75c
parents 342ff291 841f430a
Loading
Loading
Loading
Loading
+4 −1
Original line number Original line Diff line number Diff line
@@ -288,7 +288,10 @@ public class PhoneSwitcher extends Handler {


        mCommandsInterfaces = cis;
        mCommandsInterfaces = cis;


        if (numPhones > 0) {
            mCommandsInterfaces[0].registerForAvailable(this, EVENT_RADIO_AVAILABLE, null);
            mCommandsInterfaces[0].registerForAvailable(this, EVENT_RADIO_AVAILABLE, null);
        }

        try {
        try {
            tr.addOnSubscriptionsChangedListener(context.getOpPackageName(),
            tr.addOnSubscriptionsChangedListener(context.getOpPackageName(),
                    mSubscriptionsChangedListener);
                    mSubscriptionsChangedListener);