Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Bug 1083541 - [Costcontrol] Showing error screen if card state is 'un…
Browse files Browse the repository at this point in the history
…known'. r=mai
  • Loading branch information
EdgarChen authored and rvandermeulen committed Oct 21, 2014
1 parent b07caf8 commit 3d9cc66
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion apps/costcontrol/js/views/NonReadyScreen.js
Expand Up @@ -22,6 +22,7 @@ NonReadyScreen.prototype.updateForState = function(cardState) {
switch (cardState) {
case null:
case 'absent':
case 'unknown':
case 'pinRequired':
case 'pukRequired':
case 'airplaneMode':
Expand Down Expand Up @@ -60,7 +61,7 @@ NonReadyScreen.prototype.getMessageIdFor = function(cardState) {
var message;

// SIM is absent
if (!cardState || cardState === 'absent') {
if (!cardState || cardState === 'absent' || cardState === 'unknown') {
message = 'no-sim2';

// SIM is locked
Expand Down
2 changes: 1 addition & 1 deletion apps/costcontrol/js/widget.js
Expand Up @@ -45,7 +45,7 @@ var Widget = (function() {
state = cardState = dataSimIcc.cardState;

// SIM is absent
if (!cardState || cardState === 'absent') {
if (!cardState || cardState === 'absent' || cardState === 'unknown') {
debug('There is no SIM');
Widget.showSimError('no-sim2');

Expand Down

0 comments on commit 3d9cc66

Please sign in to comment.