From: Nathaniel Wesley Filardo Date: Mon, 28 Feb 2022 21:56:23 +0000 (+0000) Subject: CTFWS: Tidy conditional X-Git-Url: https://hydra-www.ietfng.org/gitweb/?a=commitdiff_plain;h=e442b9f3bf6887725cab314ae62f477c39db758e;p=acmetensortoys-ctfws-android CTFWS: Tidy conditional If the Now rationale value is NR_GAME_IN_PROGRESS then it must be the case that the Now is !stop. It's not clear what this was meant to accomplish. --- diff --git a/lib/src/main/java/com/acmetensortoys/ctfwstimer/lib/CtFwSGameStateManager.java b/lib/src/main/java/com/acmetensortoys/ctfwstimer/lib/CtFwSGameStateManager.java index 56764d6..2dcd17f 100644 --- a/lib/src/main/java/com/acmetensortoys/ctfwstimer/lib/CtFwSGameStateManager.java +++ b/lib/src/main/java/com/acmetensortoys/ctfwstimer/lib/CtFwSGameStateManager.java @@ -352,7 +352,7 @@ public class CtFwSGameStateManager { private synchronized void notifyNow() { mT.cancelPost(futureNotifyNow); Now n = getNow(mT.wallMS()); - if (n.rationale == NowRationale.NR_GAME_IN_PROGRESS || !n.stop) { + if (!n.stop) { mT.postDelay(futureNotifyNow, n.roundEnd*1000 - n.wallMS); } for (Observer o : mObsvs) { o.onCtFwSNow(this, n); }