From e01bda552e4fa0c13448791d1ca94549c4d93fba Mon Sep 17 00:00:00 2001 From: Eric House Date: Wed, 13 Mar 2019 14:29:36 -0700 Subject: [PATCH] change to work with changed NBSProxy API --- .../app/src/main/java/org/eehouse/android/xw4/XWApp.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/XWApp.java b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/XWApp.java index b36ccfab3..dec0b64ca 100644 --- a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/XWApp.java +++ b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/XWApp.java @@ -126,7 +126,6 @@ public class XWApp extends Application } // NBSProxy.Callbacks - @Override public void onProxyAppLaunched() { @@ -147,11 +146,10 @@ public class XWApp extends Application SMSService.handleFrom( this, data, fromPhone ); } - // NBSProxy.Callbacks @Override - public void onRegResponse( boolean appReached ) + public void onRegResponse( boolean appReached, boolean needsInitialLaunch ) { - if ( !appReached ) { + if ( needsInitialLaunch ) { String channelID = Channels.getChannelID( this, Channels.ID.FOREGROUND ); NBSProxy.postLaunchNotification( this, channelID, R.drawable.notify ); }