mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-30 10:26:58 +01:00
better test for GSM phone
This one doesn't think a wifi-only tablet can send SMS messages.
This commit is contained in:
parent
e5166a62e8
commit
ee042ff3cd
4 changed files with 13 additions and 10 deletions
|
@ -2439,9 +2439,9 @@
|
|||
<string name="lmi_tiles_fmt">Tiles assigned to %1$s</string>
|
||||
|
||||
<string name="bt_no_devs">You currently have no paired Bluetooth
|
||||
devices. Would you like to open the Android Settings Panel to add
|
||||
one or more?\n\n(You may also need to open it on the device you
|
||||
want to pair with.)</string>
|
||||
devices (or Bluetooth is turned off). Would you like to open the
|
||||
Android Settings Panel to add one or more?\n\n(You may also need
|
||||
to open it on the device you want to pair with.)</string>
|
||||
<string name="app_not_found_fmt">Unable to connect via Bluetooth
|
||||
to Crosswords on the device %1$s. Please check that the device is
|
||||
within Bluetooth range and that Crosswords is installed on
|
||||
|
|
|
@ -2095,9 +2095,9 @@
|
|||
<string name="lmi_phony_fmt">%1$s tsol a nrut</string>
|
||||
<string name="lmi_tiles_fmt">Selit dengissa ot %1$s</string>
|
||||
<string name="bt_no_devs">Uoy yltnerruc evah on deriap Htooteulb
|
||||
secived. Dluow uoy ekil ot nepo eht Diordna Sgnittes Lenap ot dda
|
||||
eno ro ?erom\n\nuOy( yam osla deen ot nepo ti no eht ecived uoy
|
||||
tnaw ot riap htiw.)</string>
|
||||
secived ro( Htooteulb si denrut )ffo. Dluow uoy ekil ot nepo eht
|
||||
Diordna Sgnittes Lenap ot dda eno ro ?erom\n\nuOy( yam osla deen
|
||||
ot nepo ti no eht ecived uoy tnaw ot riap htiw.)</string>
|
||||
<string name="app_not_found_fmt">Elbanu ot tcennoc aiv Htooteulb
|
||||
ot Sdrowssorc no eht ecived %1$s. Esaelp kcehc taht eht ecived si
|
||||
nihtiw Htooteulb egnar dna taht Sdrowssorc si dellatsni no
|
||||
|
|
|
@ -2095,9 +2095,9 @@
|
|||
<string name="lmi_phony_fmt">%1$s LOST A TURN</string>
|
||||
<string name="lmi_tiles_fmt">TILES ASSIGNED TO %1$s</string>
|
||||
<string name="bt_no_devs">YOU CURRENTLY HAVE NO PAIRED BLUETOOTH
|
||||
DEVICES. WOULD YOU LIKE TO OPEN THE ANDROID SETTINGS PANEL TO ADD
|
||||
ONE OR MORE?\n\n(YOU MAY ALSO NEED TO OPEN IT ON THE DEVICE YOU
|
||||
WANT TO PAIR WITH.)</string>
|
||||
DEVICES (OR BLUETOOTH IS TURNED OFF). WOULD YOU LIKE TO OPEN THE
|
||||
ANDROID SETTINGS PANEL TO ADD ONE OR MORE?\n\n(YOU MAY ALSO NEED
|
||||
TO OPEN IT ON THE DEVICE YOU WANT TO PAIR WITH.)</string>
|
||||
<string name="app_not_found_fmt">UNABLE TO CONNECT VIA BLUETOOTH
|
||||
TO CROSSWORDS ON THE DEVICE %1$s. PLEASE CHECK THAT THE DEVICE IS
|
||||
WITHIN BLUETOOTH RANGE AND THAT CROSSWORDS IS INSTALLED ON
|
||||
|
|
|
@ -132,7 +132,10 @@ public class Utils {
|
|||
if ( Perms23.havePermission( Perm.READ_PHONE_STATE ) ) {
|
||||
TelephonyManager tm = (TelephonyManager)
|
||||
context.getSystemService( Context.TELEPHONY_SERVICE );
|
||||
result = null != tm;
|
||||
if ( null != tm ) {
|
||||
int type = tm.getPhoneType();
|
||||
result = TelephonyManager.PHONE_TYPE_GSM == type;
|
||||
}
|
||||
}
|
||||
DbgUtils.logd( TAG, "deviceSupportsSMS() => %b", result );
|
||||
return result;
|
||||
|
|
Loading…
Reference in a new issue