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

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

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

* commit '5706eba8':
  Allow tablets to send SMS if enabled in device overlays (2/2)
parents 0764b3df 5706eba8
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;
        }