diff options
author | LuK1337 <priv.luk@gmail.com> | 2018-05-11 00:09:00 +0200 |
---|---|---|
committer | Paul Keith <javelinanddart@gmail.com> | 2018-07-10 17:12:56 +0200 |
commit | 8fe9d76c6de103925765c7f6bf3ab5f2268d8c50 (patch) | |
tree | dd36807f1ffda43250a17cda3d2c5012297edc89 | |
parent | 6374c2acef9631cf8ee9bcdd0b28e86221526f5c (diff) | |
download | android_hardware_lineage_telephony-8fe9d76c6de103925765c7f6bf3ab5f2268d8c50.tar.gz android_hardware_lineage_telephony-8fe9d76c6de103925765c7f6bf3ab5f2268d8c50.tar.bz2 android_hardware_lineage_telephony-8fe9d76c6de103925765c7f6bf3ab5f2268d8c50.zip |
Reenable both SIM cards on hotswap
-rw-r--r-- | src/com/qualcomm/qti/internal/telephony/LineageExtTelephony.java | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/com/qualcomm/qti/internal/telephony/LineageExtTelephony.java b/src/com/qualcomm/qti/internal/telephony/LineageExtTelephony.java index c43f9f1..00216f8 100644 --- a/src/com/qualcomm/qti/internal/telephony/LineageExtTelephony.java +++ b/src/com/qualcomm/qti/internal/telephony/LineageExtTelephony.java @@ -159,9 +159,14 @@ public class LineageExtTelephony extends IExtTelephony.Stub { sUiccStatus[slotId] = PROVISIONED; deactivateUiccCard(slotId); sPreviousDataSlotId = -1; - } else if (sUiccStatus[slotId] != NOT_PROVISIONED) { - sUiccStatus[slotId] = card.getCardState() == CARDSTATE_PRESENT - ? PROVISIONED : CARD_NOT_PRESENT; + } else if (sUiccStatus[slotId] != NOT_PROVISIONED || + card.getCardState() != CARDSTATE_PRESENT) { + if (card.getCardState() == CARDSTATE_PRESENT) { + sUiccStatus[slotId] = NOT_PROVISIONED; + activateUiccCard(slotId); + } else { + sUiccStatus[slotId] = CARD_NOT_PRESENT; + } } broadcastUiccActivation(slotId); |