diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/GCMIntentService.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/GCMIntentService.java index 1fc22e503..532e70329 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/GCMIntentService.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/GCMIntentService.java @@ -56,7 +56,18 @@ public class GCMIntentService extends GCMBaseIntentService { @Override protected void onMessage( Context context, Intent intent ) { - String value = intent.getStringExtra( "msg" ); + String value; + + value = intent.getStringExtra( "getMoves" ); + if ( null != value && Boolean.parseBoolean( value ) ) { + RelayReceiver.RestartTimer( context, true ); + } + value = intent.getStringExtra( "checkUpdates" ); + if ( null != value && Boolean.parseBoolean( value ) ) { + UpdateCheckReceiver.checkVersions( context, true ); + } + + value = intent.getStringExtra( "msg" ); if ( null != value ) { String title = intent.getStringExtra( "title" ); if ( null != title ) { @@ -64,11 +75,6 @@ public class GCMIntentService extends GCMBaseIntentService { Utils.postNotification( context, null, title, value, code ); } } - - value = intent.getStringExtra( "getMoves" ); - if ( null != value && Boolean.parseBoolean( value ) ) { - RelayReceiver.RestartTimer( context, true ); - } } public static void init( Application app )