Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Bug 823650 - showing Cellbroadcast information #7207

Merged
merged 1 commit into from Dec 28, 2012

Conversation

Projects
None yet
2 participants
Contributor

yurenju commented Dec 27, 2012

No description provided.

@timdream timdream commented on an outdated diff Dec 28, 2012

apps/system/js/lockscreen.js
@@ -132,6 +132,18 @@ var LockScreen = {
this.updateConnState();
this.connstate.hidden = false;
}
+ if (navigator && navigator.mozCellBroadcast) {
+ var self = this;
+ navigator.mozCellBroadcast.onreceived = function onReceived(event) {
+ var msg = event.message;
+ if (conn &&
+ conn.voice.network.mcc === MobileOperator.BRAZIL_MCC &&
+ msg.messageId === MobileOperator.BRAZIL_CELLBROADCAST_CHANNEL) {
+ self.cellbroadcast = msg.body;
@timdream

timdream Dec 28, 2012

Owner

cellbroadcastLabel

@timdream timdream commented on an outdated diff Dec 28, 2012

apps/system/js/lockscreen.js
@@ -770,7 +782,9 @@ var LockScreen = {
return;
}
var operatorInfos = MobileOperator.userFacingInfo(conn);
- if (operatorInfos.carrier) {
+ if (this.cellbroadcast) {
@timdream

timdream Dec 28, 2012

Owner

cellbroadcastLabel

yurenju added a commit that referenced this pull request Dec 28, 2012

Merge pull request #7207 from yurenju/issue-823650
Bug 823650 - showing Cellbroadcast information

@yurenju yurenju merged commit 655b8a8 into mozilla-b2g:master Dec 28, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment