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
public void onCreate()
{
if ( XWApp.SMSSUPPORTED ) {
if ( XWApp.SMSSUPPORTED && Utils.deviceSupportsSMS( this ) ) {
registerReceivers();
} else {
stopSelf();