@Override protected Timer getTimer() { if (timer == null) { timer = new CountDownTimer(challengeTime); timer.setInterval(0.5f); timer.setCountDownListener( new CountDownTimer.ICountDownListener() { @Override public void onCountDownEnd(CountDownTimer timer) { notifyModeEnd(); } }); } return timer; }
@Override protected void onOpenExtraCards() { if (timer.getRemaining() > 10) super.onOpenExtraCards(); else flashTimerText(); }