mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-09 05:24:44 +01:00
don't post notifications for "moves" about which there's nothing to be
said. I think these are admin messages, e.g. "The move you reported is legal", that are not of interest to users.
This commit is contained in:
parent
4251d08248
commit
9a46d0713a
1 changed files with 10 additions and 12 deletions
|
@ -1,7 +1,7 @@
|
||||||
/* -*- compile-command: "find-and-ant.sh debug install"; -*- */
|
/* -*- compile-command: "find-and-ant.sh debug install"; -*- */
|
||||||
/*
|
/*
|
||||||
* Copyright 2009-2010 by Eric House (xwords@eehouse.org). All
|
* Copyright 2009-2015 by Eric House (xwords@eehouse.org). All rights
|
||||||
* rights reserved.
|
* reserved.
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or
|
* This program is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU General Public License as
|
* modify it under the terms of the GNU General Public License as
|
||||||
|
@ -1043,18 +1043,16 @@ public class GameUtils {
|
||||||
public static void postMoveNotification( Context context, long rowid,
|
public static void postMoveNotification( Context context, long rowid,
|
||||||
LastMoveInfo lmi )
|
LastMoveInfo lmi )
|
||||||
{
|
{
|
||||||
if ( null == lmi ) {
|
if ( null != lmi ) {
|
||||||
DbgUtils.logf( "postMoveNotification: posting nothing for lack"
|
|
||||||
+ " of lmi" );
|
|
||||||
} else {
|
|
||||||
Intent intent = GamesListDelegate.makeRowidIntent( context, rowid );
|
Intent intent = GamesListDelegate.makeRowidIntent( context, rowid );
|
||||||
String msg = "";
|
String msg = lmi.format( context );
|
||||||
if ( null != lmi ) {
|
String title =
|
||||||
msg = lmi.format( context );
|
LocUtils.getString( context, R.string.notify_title_fmt,
|
||||||
}
|
getName( context, rowid ) );
|
||||||
String title = LocUtils.getString( context, R.string.notify_title_fmt,
|
|
||||||
getName( context, rowid ) );
|
|
||||||
Utils.postNotification( context, intent, title, msg, (int)rowid );
|
Utils.postNotification( context, intent, title, msg, (int)rowid );
|
||||||
|
} else {
|
||||||
|
DbgUtils.logf( "postMoveNotification(): posting nothing for lack"
|
||||||
|
+ " of lmi" );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue