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

Commit 3bfa6352 authored by andychou's avatar andychou Committed by android-build-merger
Browse files

Merge "Also check ImsPhone emergency all status when evaluate preferred data slot switch"

am: 49c05bd9

Change-Id: I541a92f7c894bc8f93a20e8c2830b744808ba000
parents 0e2f85bf 49c05bd9
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -459,6 +459,10 @@ public class PhoneSwitcher extends Handler {
        for (Phone p : mPhones) {
            if (p == null) continue;
            if (p.isInEcm() || p.isInEmergencyCall()) return true;
            Phone imsPhone = p.getImsPhone();
            if (imsPhone != null && (imsPhone.isInEcm() || imsPhone.isInEmergencyCall())) {
                return true;
            }
        }
        return false;
    }