Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Bug 822477 - [contacts] 'Import SIM Contacts' incorrectly disabled if…

… SIM card disabled on mobile network
  • Loading branch information...
commit 3997a871e22d2a9b75513698114865af79d9f646 1 parent f81ffd6
@qdot qdot authored vingtetun committed
Showing with 3 additions and 1 deletion.
  1. +3 −1 apps/communications/contacts/js/contacts_settings.js
View
4 apps/communications/contacts/js/contacts_settings.js
@@ -100,7 +100,9 @@ contacts.Settings = (function() {
return;
}
- enableSIMImport(conn.cardState == 'ready');
+ // Card should either be "ready" (connected to network) or "null" (card in
+ // phone but cannot connect to network for some reason).
+ enableSIMImport(conn.cardState == 'ready' || conn.cardState == null);
};
// Disables/Enables the actions over the sim import functionality
Please sign in to comment.
Something went wrong with that request. Please try again.