From 08205637de93183dad34ffe7f214b52f60e26565 Mon Sep 17 00:00:00 2001 From: Eric House Date: Thu, 21 Nov 2013 05:07:20 -0800 Subject: [PATCH] disable SMS play/invite on KitKat (until workarounds found) --- .../XWords4/src/org/eehouse/android/xw4/Utils.java | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/Utils.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/Utils.java index 3816f18f1..1832493f0 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/Utils.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/Utils.java @@ -100,11 +100,14 @@ public class Utils { { if ( null == s_deviceSupportSMS ) { boolean doesSMS = false; - TelephonyManager tm = (TelephonyManager) - context.getSystemService(Context.TELEPHONY_SERVICE); - if ( null != tm ) { - int type = tm.getPhoneType(); - doesSMS = TelephonyManager.PHONE_TYPE_NONE != type; + // TEMPORARY: disable SMS on KITKAT + if ( 19 > Integer.valueOf( android.os.Build.VERSION.SDK ) ) { + TelephonyManager tm = (TelephonyManager) + context.getSystemService(Context.TELEPHONY_SERVICE); + if ( null != tm ) { + int type = tm.getPhoneType(); + doesSMS = TelephonyManager.PHONE_TYPE_NONE != type; + } } s_deviceSupportSMS = new Boolean( doesSMS ); }