CountDownTimer calls double method

后端 未结 1 934
小蘑菇
小蘑菇 2021-01-28 01:13

I don\'t know how to explain better. I have this timer, and after it finish counting it should call another class (popup) and after that other function in the same class where t

1条回答
  •  感动是毒
    2021-01-28 01:46

    I found my error. I called my counter twice. Here:

    nextQuestion(); 
    brojacVremena.start();
    

    and below in the very same nextQuestion method:

    public void nextQuestion() {
    brojacVremena.start();
    .
    .
    .
    

    I don't know how that happened.

    0 讨论(0)
提交回复
热议问题