mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-07 05:24:46 +01:00
disable SMS play/invite on KitKat (until workarounds found)
This commit is contained in:
parent
2d7c845ebb
commit
08205637de
1 changed files with 8 additions and 5 deletions
|
@ -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 );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue