Loading src/java/com/android/internal/telephony/SmsApplication.java +2 −2 Original line number Diff line number Diff line Loading @@ -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; } Loading Loading @@ -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; } Loading Loading
src/java/com/android/internal/telephony/SmsApplication.java +2 −2 Original line number Diff line number Diff line Loading @@ -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; } Loading Loading @@ -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; } Loading