don't start SMS receivers on device without a phone

This commit is contained in:
Eric House 2012-07-24 07:09:37 -07:00
parent 8e961fcb4c
commit 4f437f0d55

View file

@ -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();