mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-01 19:57:11 +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 result = 0;
|
||||||
long now = new Date().getTime(); // in milliseconds
|
long now = new Date().getTime(); // in milliseconds
|
||||||
Assert.assertTrue( now >= moveTimeMillis );
|
if ( now >= moveTimeMillis ) {
|
||||||
long[] intervals = getIntervals( context );
|
long[] intervals = getIntervals( context );
|
||||||
for ( long nSecs : intervals ) {
|
for ( long nSecs : intervals ) {
|
||||||
long asMillis = moveTimeMillis + (nSecs * 1000);
|
long asMillis = moveTimeMillis + (nSecs * 1000);
|
||||||
if ( asMillis >= now ) {
|
if ( asMillis >= now ) {
|
||||||
result = asMillis;
|
result = asMillis;
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
Assert.assertFalse( BuildConfig.DEBUG );
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue