Exemplo n.º 1
0
 @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;
 }
Exemplo n.º 2
0
 @Override
 protected void onOpenExtraCards() {
   if (timer.getRemaining() > 10) super.onOpenExtraCards();
   else flashTimerText();
 }