Closed Bug 1148309 Opened 9 years ago Closed 9 years ago

No SimLockScreen displayed after toggling Airplane Mode ON/OFF when all slots are presents at SimSlotManager.init() with Bug 1114935 is landed.

Categories

(Firefox OS Graveyard :: Gaia::System, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: bevis, Assigned: bevis)

References

Details

Attachments

(1 file)

To adopt the change of bug 1114935,
In bug 1140314, we ensured that 'simslotready' is published if all cards are ready in SIMSlotManager.init() and bail out earlier without adding EventListener to 'iccdetected'.

However, it will cause the regression of NO SimLockScreen displayed after toggling airplane mode ON/OFF if bug 1114935 is landed.

The reason is that, without 'iccdetected', SIMSlot.update() will never be invoked anymore to replace the iccObj to the new one created from MozIccManager.

Hence, file this bug to address this problem to ensure that "iccdetected" will always be listened.
Comment on attachment 8584332 [details] [review]
[gaia] bevis-tseng:Bug_1148309 > mozilla-b2g:master. r=alive

This is to ensure 'iccdetected' will always be listened by SimSlotManager even all cards are detected at init() to allow SimSlot to be updated with the new IccObject from MozIccManager when airplane mode is toggled ON/OFF.

Hi Alive,

May I have your review for this fix?
Test case is also modified accordingly.

Thanks!
Attachment #8584332 - Flags: review?(alive)
Comment on attachment 8584332 [details] [review]
[gaia] bevis-tseng:Bug_1148309 > mozilla-b2g:master. r=alive

r=me
Attachment #8584332 - Flags: review?(alive) → review+
BTW, it's better if you could comment the reason in the code base in order to prevent someone else remove the event listener again.
Summary: No SimLockScreen displayed if all cards are PIN enabled after toggling Airplane Mode ON/OFF if Bug 1114935 is landed. → No SimLockScreen displayed after toggling Airplane Mode ON/OFF when all slots are presents at SimSlotManager.init() with Bug 1114935 is landed.
(In reply to Alive Kuo [:alive][NEEDINFO!] from comment #4)
> BTW, it's better if you could comment the reason in the code base in order
> to prevent someone else remove the event listener again.

Thanks for reminding, I'll update the PR with more explanation.
Attachment #8584332 - Attachment description: [gaia] bevis-tseng:Bug_1148309 > mozilla-b2g:master → [gaia] bevis-tseng:Bug_1148309 > mozilla-b2g:master. r=alive
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: