-
-
Save invisiblek/1473ebca61a5c1851d40 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/java/com/android/internal/telephony/SubInfoRecordUpdater.java b/src/java/com/android/internal/telephony/SubInfoRecordUpdater.java | |
index e49a962..cc331cf 100644 | |
--- a/src/java/com/android/internal/telephony/SubInfoRecordUpdater.java | |
+++ b/src/java/com/android/internal/telephony/SubInfoRecordUpdater.java | |
@@ -284,7 +284,7 @@ public class SubInfoRecordUpdater extends Handler { | |
sCardState[slotId] = newState; | |
logd("Slot[" + slotId + "]: New Card State = " | |
+ newState + " " + "Old Card State = " + oldState); | |
- if (!newState.isCardPresent()) { | |
+ if (!newState.isCardPresent() && newState != oldState) { | |
//Card moved to ABSENT State | |
if (sIccId[slotId] != null && !sIccId[slotId].equals(ICCID_STRING_FOR_NO_SIM)) { | |
logd("SIM" + (slotId + 1) + " hot plug out"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment