mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-04 20:46:28 +01:00
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.
This commit is contained in:
parent
5e63d03e76
commit
6851fd9746
1 changed files with 8 additions and 1 deletions
|
@ -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 );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue