mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-13 20:48:02 +01:00
don't start SMS receivers on device without a phone
This commit is contained in:
parent
8e961fcb4c
commit
4f437f0d55
1 changed files with 1 additions and 1 deletions
|
@ -211,7 +211,7 @@ public class SMSService extends Service {
|
||||||
@Override
|
@Override
|
||||||
public void onCreate()
|
public void onCreate()
|
||||||
{
|
{
|
||||||
if ( XWApp.SMSSUPPORTED ) {
|
if ( XWApp.SMSSUPPORTED && Utils.deviceSupportsSMS( this ) ) {
|
||||||
registerReceivers();
|
registerReceivers();
|
||||||
} else {
|
} else {
|
||||||
stopSelf();
|
stopSelf();
|
||||||
|
|
Loading…
Add table
Reference in a new issue