Update mRecordsRequested on sending request instead of onLocked.
Amit Mahajan [Mon, 29 Sep 2014 17:20:27 +0000 (10:20 -0700)]
Bug: 17668819
Change-Id: Ib982149c665258dba8fbb4b58a35449b40529913

src/java/com/android/internal/telephony/uicc/SIMRecords.java

index 414c183..65e89d9 100644 (file)
@@ -1505,13 +1505,13 @@ public class SIMRecords extends IccRecords {
     }
 
     private void onLocked() {
-        mRecordsRequested = true;
         if (DBG) log("only fetch EF_LI and EF_PL in lock state");
         loadEfLiAndEfPl();
     }
 
     private void loadEfLiAndEfPl() {
         if (mParentApp.getType() == AppType.APPTYPE_USIM) {
+            mRecordsRequested = true;
             mFh.loadEFTransparent(EF_LI,
                     obtainMessage(EVENT_GET_ICC_RECORD_DONE, new EfUsimLiLoaded()));
             mRecordsToLoad++;