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

Commit 82a36f39 authored by Amit Mahajan's avatar Amit Mahajan Committed by Automerger Merge Worker
Browse files

Merge "Set phoneId for SIM_STATE_CHANGED events" am: 05c15176 am: e27c5bb6 am: e69c2096

Original change: https://android-review.googlesource.com/c/platform/frameworks/opt/telephony/+/1618919

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ib692d149b6f88703925cd0b48f313e4baa26e3ae
parents 971e32c1 e69c2096
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -791,7 +791,8 @@ public class TelephonyMetrics {
        Integer lastSimState = mLastSimState.get(phoneId);
        Integer lastSimState = mLastSimState.get(phoneId);
        if (lastSimState == null || !lastSimState.equals(state)) {
        if (lastSimState == null || !lastSimState.equals(state)) {
            mLastSimState.put(phoneId, state);
            mLastSimState.put(phoneId, state);
            addTelephonyEvent(new TelephonyEventBuilder().setSimStateChange(mLastSimState).build());
            addTelephonyEvent(
                    new TelephonyEventBuilder(phoneId).setSimStateChange(mLastSimState).build());
        }
        }
    }
    }