diff --git a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/SMSService.java b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/SMSService.java index 43af25959..49d26e588 100644 --- a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/SMSService.java +++ b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/SMSService.java @@ -485,7 +485,7 @@ public class SMSService extends XWService { } postEvent( MultiEvent.SMS_RECEIVE_OK ); } else { - Log.w( TAG, "receiveBuffer(): bogus or incomplete message from phone %s", + Log.d( TAG, "receiveBuffer(): bogus or incomplete message from %s", senderPhone ); } } @@ -501,8 +501,8 @@ public class SMSService extends XWService { private void makeForInvite( String phone, NetLaunchInfo nli ) { - if ( nli != null && - handleInvitation( nli, phone, DictFetchOwner.OWNER_SMS ) ) { + if ( nli != null ) { + handleInvitation( nli, phone, DictFetchOwner.OWNER_SMS ); ackInvite( phone, nli.gameID() ); } } diff --git a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/XWService.java b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/XWService.java index 9e6e1dbac..62e680abf 100644 --- a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/XWService.java +++ b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/XWService.java @@ -89,6 +89,7 @@ abstract class XWService extends Service { abstract void postNotification( String device, int gameID, long rowid ); + // Return true if able to start game only protected boolean handleInvitation( NetLaunchInfo nli, String device, DictFetchOwner dfo ) { @@ -110,6 +111,7 @@ abstract class XWService extends Service { } postNotification( device, nli.gameID(), rowid ); + success = true; } else { Intent intent = MultiService .makeMissingDictIntent( this, nli, dfo ); @@ -118,6 +120,7 @@ abstract class XWService extends Service { } } } + Log.d( TAG, "handleInvitation() => %b", success ); return success; }