Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 242184ca authored by Wink Saville's avatar Wink Saville Committed by Gerrit Code Review
Browse files

Merge "Allow tablets to send SMS if enabled in device overlays (1/2)"

parents 6829c48c a3c0a535
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
        }
+1 −1
Original line number Diff line number Diff line
@@ -247,7 +247,7 @@ public class WirelessSettings extends RestrictedSettingsFragment

    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