mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-22 07:28:16 +01:00
remove firing assertion (per Play store)
Looks like clock skew or maybe even a timezone issue (I'm not doing enough research :-) is causing an assert. Just drop the notification instead.
This commit is contained in:
parent
098de83b04
commit
7f4d8b1a44
1 changed files with 10 additions and 8 deletions
|
@ -145,16 +145,18 @@ public class NagTurnReceiver extends BroadcastReceiver {
|
|||
{
|
||||
long result = 0;
|
||||
long now = new Date().getTime(); // in milliseconds
|
||||
Assert.assertTrue( now >= moveTimeMillis );
|
||||
long[] intervals = getIntervals( context );
|
||||
for ( long nSecs : intervals ) {
|
||||
long asMillis = moveTimeMillis + (nSecs * 1000);
|
||||
if ( asMillis >= now ) {
|
||||
result = asMillis;
|
||||
break;
|
||||
if ( now >= moveTimeMillis ) {
|
||||
long[] intervals = getIntervals( context );
|
||||
for ( long nSecs : intervals ) {
|
||||
long asMillis = moveTimeMillis + (nSecs * 1000);
|
||||
if ( asMillis >= now ) {
|
||||
result = asMillis;
|
||||
break;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
Assert.assertFalse( BuildConfig.DEBUG );
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue