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

Commit b58d0ca6 authored by Wink Saville's avatar Wink Saville Committed by Android Git Automerger
Browse files

am 76edd9b9: am 94b4d47b: am 5706eba8: Merge "Allow tablets to send SMS if...

am 76edd9b9: am 94b4d47b: am 5706eba8: Merge "Allow tablets to send SMS if enabled in device overlays (2/2)"

* commit '76edd9b9':
  Allow tablets to send SMS if enabled in device overlays (2/2)
parents 3339fbe8 76edd9b9
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;
        }