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:
Eric House 2017-05-18 06:19:25 -07:00
parent 098de83b04
commit 7f4d8b1a44

View file

@ -145,7 +145,7 @@ 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);
@ -154,7 +154,9 @@ public class NagTurnReceiver extends BroadcastReceiver {
break; break;
} }
} }
} else {
Assert.assertFalse( BuildConfig.DEBUG );
}
return result; return result;
} }