Merge "Import translations. DO NOT MERGE"
diff --git a/src/com/android/phone/NetworkSetting.java b/src/com/android/phone/NetworkSetting.java
index 874be30..4bd02cf 100644
--- a/src/com/android/phone/NetworkSetting.java
+++ b/src/com/android/phone/NetworkSetting.java
@@ -74,6 +74,7 @@
     protected boolean mIsForeground = false;
 
     private UserManager mUm;
+    private boolean mUnavailable;
 
     /** message for network selection */
     String mNetworkSelectMsg;
@@ -231,6 +232,7 @@
 
         if (mUm.hasUserRestriction(UserManager.DISALLOW_CONFIG_MOBILE_NETWORKS)) {
             setContentView(R.layout.telephony_disallowed_preference_screen);
+            mUnavailable = true;
             return;
         }
 
@@ -272,9 +274,10 @@
      */
     @Override
     protected void onDestroy() {
-        // unbind the service.
-        unbindService(mNetworkQueryServiceConnection);
-
+        if (!mUnavailable) {
+            // unbind the service.
+            unbindService(mNetworkQueryServiceConnection);
+        }
         super.onDestroy();
     }