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

Commit 5706eba8 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 (2/2)"

parents b0b5c014 ac9c712e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -256,7 +256,7 @@ public final class SmsApplication {
     */
    private static SmsApplicationData getApplication(Context context, boolean updateIfNeeded) {
        TelephonyManager tm = (TelephonyManager)context.getSystemService(Context.TELEPHONY_SERVICE);
        if (tm.getPhoneType() == TelephonyManager.PHONE_TYPE_NONE) {
        if (!tm.isSmsCapable()) {
            // No phone, no SMS
            return null;
        }
@@ -368,7 +368,7 @@ public final class SmsApplication {
     */
    public static void setDefaultApplication(String packageName, Context context) {
        TelephonyManager tm = (TelephonyManager)context.getSystemService(Context.TELEPHONY_SERVICE);
        if (tm.getPhoneType() == TelephonyManager.PHONE_TYPE_NONE) {
        if (!tm.isSmsCapable()) {
            // No phone, no SMS
            return;
        }