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

Commit

Permalink
Merge "Allow tablets to send SMS if enabled in device overlays (1/2)"
Browse files Browse the repository at this point in the history
  • Loading branch information
Wink Saville authored and Gerrit Code Review committed Apr 16, 2014
2 parents 6829c48 + a3c0a53 commit 242184c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/com/android/settings/SmsDefaultDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public void onClick(DialogInterface dialog, int which) {

private boolean buildDialog(String packageName) {
TelephonyManager tm = (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE);
if (tm.getPhoneType() == TelephonyManager.PHONE_TYPE_NONE) {
if (!tm.isSmsCapable()) {
// No phone, no SMS
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion src/com/android/settings/WirelessSettings.java
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ public static boolean isRadioAllowed(Context context, String type) {

private boolean isSmsSupported() {
// Some tablet has sim card but could not do telephony operations. Skip those.
return (mTm.getPhoneType() != TelephonyManager.PHONE_TYPE_NONE);
return mTm.isSmsCapable();
}

@Override
Expand Down

0 comments on commit 242184c

Please sign in to comment.