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

Commit 9ab3dbf6 authored by Wink Saville's avatar Wink Saville Committed by Android (Google) Code Review
Browse files

Merge "Check for subId array being null."

parents 527a293c 1b5916b2
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1414,6 +1414,9 @@ public class TelephonyManager {
    // FIXME the argument to pass is subId ??
    public int getSimState(int slotId) {
        long[] subId = SubscriptionManager.getSubId(slotId);
        if (subId == null) {
            return SIM_STATE_ABSENT;
        }
        // FIXME Do not use a property to determine SIM_STATE, call
        // appropriate method on some object.
        String prop =