am 6e5956eb: Merge "Default SMS app setting should still be shown even if SIM is removed." into klp-dev

* commit '6e5956ebe2b9c3d06ea463bba5c864dad58e0c02':
  Default SMS app setting should still be shown even if SIM is removed.
This commit is contained in:
David Braun
2013-10-02 14:29:39 -07:00
committed by Android Git Automerger

View File

@@ -247,12 +247,7 @@ public class WirelessSettings extends RestrictedSettingsFragment
private boolean isSmsSupported() {
// Some tablet has sim card but could not do telephony operations. Skip those.
if (mTm.getPhoneType() == TelephonyManager.PHONE_TYPE_NONE) {
return false;
}
int simState = mTm.getSimState();
return simState != TelephonyManager.SIM_STATE_ABSENT &&
simState != TelephonyManager.SIM_STATE_UNKNOWN;
return (mTm.getPhoneType() != TelephonyManager.PHONE_TYPE_NONE);
}
@Override