Пример #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;
 }
Пример #2
0
 @Override
 protected void onOpenExtraCards() {
   if (timer.getRemaining() > 10) super.onOpenExtraCards();
   else flashTimerText();
 }