mozilla-b2g/gaia — pull request #15940 by lissyx (2014-02-04 12:09:28+00:00)
Title: Bug 965765 - Force a cardstatechange publish to ensure SIM PIN dialog is displayed

In some cases, we can have 'iccdetected' triggered after
'cardstatechange'. This makes the handler not installed in time and thus
we miss the event and are not able to display the SIM PIN unlock
interface. We add checking on the locked state of the SIM card, and if
it is locked then we force issue a 'cardstatechange' event.