mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-09 22:00:39 +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
|
||||
public void onCreate()
|
||||
{
|
||||
if ( XWApp.SMSSUPPORTED ) {
|
||||
if ( XWApp.SMSSUPPORTED && Utils.deviceSupportsSMS( this ) ) {
|
||||
registerReceivers();
|
||||
} else {
|
||||
stopSelf();
|
||||
|
|
Loading…
Add table
Reference in a new issue