If there is no IccFileHandler do not change sIccId[slotId].

In our master branch with a Sprint SIM I found that the call to
getIccFileHandler in queryIccId is returning null when  sReceiver
receives a ACTION_SIM_STATE_CHANGED with a simStatus of
INTENT_VALUE_ICC_READY.

This causes queryIccId to set sIid[slotId] to ICCID_STRING_FOR_NO_SIM
and thus never get updated. Which causes addSubInfoRecord to never be
called so there is no Subscriptions.

The most obvious problem this causes is an Empty Triangle for the SSI
Icon.

This fix is to not change sIccId[slotId], instead it will be updated
when the sReceiver gets a ACTION_SIM_STATE_CHANGED with a simStatus of
INTENT_VALUE_ICC_LOADED a short while later.

Added some debug.

Change-Id: I8493fe14d4425f89144dda4bba129b4465fc41ac
2 files changed
tree: 202a0b5214ed024809f6cc055ec25c147ccce2e2
  1. src/
  2. tests/
  3. tools/
  4. Android.mk
  5. CleanSpec.mk
  6. README.txt