mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-06 20:45:54 +01:00
switch to nag times for ship
This commit is contained in:
parent
c83e7773fb
commit
ad7a32504a
1 changed files with 6 additions and 7 deletions
|
@ -37,12 +37,12 @@ import org.eehouse.android.xw4.jni.GameSummary;
|
|||
public class NagTurnReceiver extends BroadcastReceiver {
|
||||
|
||||
private static final long INTERVAL_MILLIS = 1000 * 30; // every half minute for now
|
||||
private static final long[] NAG_INTERVAL_SECONDS = {2*60, // five minutes (for testing)
|
||||
5*60,
|
||||
10*60,
|
||||
// 60*1*24, // one day
|
||||
// 60*2*24, // two days
|
||||
// 60*3*24, // three days
|
||||
private static final long[] NAG_INTERVAL_SECONDS = {// 2*60, // five minutes (for testing)
|
||||
// 5*60,
|
||||
// 10*60,
|
||||
60*1*24, // one day
|
||||
60*2*24, // two days
|
||||
60*3*24, // three days
|
||||
};
|
||||
|
||||
@Override
|
||||
|
@ -65,7 +65,6 @@ public class NagTurnReceiver extends BroadcastReceiver {
|
|||
: summary.getPrevPlayer();
|
||||
|
||||
Intent msgIntent = GamesListDelegate.makeRowidIntent( context, rowid );
|
||||
// Change this to hours or days before ship
|
||||
int nHours = (int)(now - info.m_lastMoveMillis) / (1000 * 60 * 60);
|
||||
String body = String.format( LocUtils.getString(context, R.string.nag_body_fmt),
|
||||
prevPlayer, nHours );
|
||||
|
|
Loading…
Add table
Reference in a new issue