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

Commit 841f430a authored by sqian's avatar sqian Committed by android-build-merger
Browse files

Merge "Fix PhoneSwitcher crash" am: 7627e94f

am: 970e15de

Change-Id: I1de1e594d97a4410fb02481e0287d8301da7e0b4
parents 68a16acc 970e15de
Loading
Loading
Loading
Loading
+4 −1
Original line number Original line Diff line number Diff line
@@ -275,7 +275,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);