Allow tablets to send SMS if enabled in device overlays (1/2)
Change-Id: I51771c28415352ee0838fa1507a1461c652d56e8
This commit is contained in:
@@ -64,7 +64,7 @@ public final class SmsDefaultDialog extends AlertActivity implements
|
||||
|
||||
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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user