disable SMS play/invite on KitKat (until workarounds found)

This commit is contained in:
Eric House 2013-11-21 05:07:20 -08:00
parent 2d7c845ebb
commit 08205637de

View file

@ -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 );
}