mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-08 05:24:39 +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 ) {
|
if ( null == s_deviceSupportSMS ) {
|
||||||
boolean doesSMS = false;
|
boolean doesSMS = false;
|
||||||
TelephonyManager tm = (TelephonyManager)
|
// TEMPORARY: disable SMS on KITKAT
|
||||||
context.getSystemService(Context.TELEPHONY_SERVICE);
|
if ( 19 > Integer.valueOf( android.os.Build.VERSION.SDK ) ) {
|
||||||
if ( null != tm ) {
|
TelephonyManager tm = (TelephonyManager)
|
||||||
int type = tm.getPhoneType();
|
context.getSystemService(Context.TELEPHONY_SERVICE);
|
||||||
doesSMS = TelephonyManager.PHONE_TYPE_NONE != type;
|
if ( null != tm ) {
|
||||||
|
int type = tm.getPhoneType();
|
||||||
|
doesSMS = TelephonyManager.PHONE_TYPE_NONE != type;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
s_deviceSupportSMS = new Boolean( doesSMS );
|
s_deviceSupportSMS = new Boolean( doesSMS );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue