OSDN Git Service

Enable Sim Settings
authorWink Saville <wink@google.com>
Thu, 2 Oct 2014 22:54:21 +0000 (15:54 -0700)
committerWink Saville <wink@google.com>
Thu, 2 Oct 2014 22:54:21 +0000 (15:54 -0700)
Changes from Paul and MTK will be coming soon but this
allow us to do some initial testing.

Change-Id: Ic52bc3656bc7066c8bbb7435eaf14e9b8e66a257

src/com/android/settings/Utils.java
src/com/android/settings/sim/SimSettings.java

index 08cfc58..a46df0a 100644 (file)
@@ -877,8 +877,8 @@ public final class Utils {
                 (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE);
 
         // TODO: Uncomment to re-enable SimSettings.
-        // return tm.getSimCount() > 0;
-        return false;
+        return tm.getSimCount() > 0;
+        //return false;
     }
 
     /**
index 07d09f3..a49ede6 100644 (file)
@@ -201,7 +201,7 @@ public class SimSettings extends RestrictedSettingsFragment implements Indexable
         if (sir != null) {
             simPref.setSelectedItem(sir.slotId + 1);
         }
-        simPref.setEnabled(mNumSims > 1);
+        simPref.setEnabled(mNumSims >= 1);
     }
 
     private void updateCellularDataValues() {
@@ -210,7 +210,7 @@ public class SimSettings extends RestrictedSettingsFragment implements Indexable
         if (sir != null) {
             simPref.setSelectedItem(sir.slotId);
         }
-        simPref.setEnabled(mNumSims > 1);
+        simPref.setEnabled(mNumSims >= 1);
     }
 
     private void updateCallValues() {
@@ -219,7 +219,7 @@ public class SimSettings extends RestrictedSettingsFragment implements Indexable
         if (sir != null) {
             simPref.setSelectedItem(sir.slotId + 1);
         }
-        simPref.setEnabled(mNumSims > 1);
+        simPref.setEnabled(mNumSims >= 1);
     }
 
     @Override