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)
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 1•9 years ago
|
||
Assignee | ||
Comment 2•9 years ago
|
||
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 3•9 years ago
|
||
Comment on attachment 8584332 [details] [review] [gaia] bevis-tseng:Bug_1148309 > mozilla-b2g:master. r=alive r=me
Attachment #8584332 -
Flags: review?(alive) → review+
Comment 4•9 years ago
|
||
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.
Assignee | ||
Updated•9 years ago
|
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.
Assignee | ||
Comment 5•9 years ago
|
||
(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.
Assignee | ||
Comment 6•9 years ago
|
||
try-server is green: https://treeherder.mozilla.org/#/jobs?repo=gaia&revision=21ce3acc7bcaef34ec17e2000fc251c7decb2dc1
Keywords: checkin-needed
Updated•9 years ago
|
Keywords: checkin-needed
Assignee | ||
Updated•9 years ago
|
Attachment #8584332 -
Attachment description: [gaia] bevis-tseng:Bug_1148309 > mozilla-b2g:master → [gaia] bevis-tseng:Bug_1148309 > mozilla-b2g:master. r=alive
Comment 7•9 years ago
|
||
Pull request has landed in master: https://github.com/mozilla-b2g/gaia/commit/3e00b3f216007774ddccad80d9baef6ef34243b6
Updated•9 years ago
|
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.
Description
•