From 6851fd9746af25f8d113a14e59159dc83f3b8f9e Mon Sep 17 00:00:00 2001 From: Eric House Date: Sat, 11 Jul 2015 08:25:10 -0700 Subject: [PATCH] include teaser from server, and launch an alert in-game instead of having the notification display everything. I've committed this before; not sure where it went. --- .../src/org/eehouse/android/xw4/GCMIntentService.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 08122d902..f6fb0138b 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/GCMIntentService.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/GCMIntentService.java @@ -101,8 +101,15 @@ public class GCMIntentService extends GCMBaseIntentService { if ( null != value ) { String title = intent.getStringExtra( "title" ); if ( null != title ) { + String teaser = intent.getStringExtra( "teaser" ); + if ( null == teaser ) { + teaser = value; + } + Intent alertIntent = GamesListDelegate + .makeAlertIntent( this, value ); int code = value.hashCode() ^ title.hashCode(); - Utils.postNotification( context, null, title, value, code ); + Utils.postNotification( context, alertIntent, title, + teaser, code ); } } }