Null internal timer in CountdownTimer on finish.

This commit is contained in:
garbagemule 2014-02-25 03:32:44 +01:00
parent bf8c244fce
commit 67535eed93

View File

@ -212,8 +212,9 @@ public class CountdownTimer extends AbstractTimer {
synchronized (CountdownTimer.this) {
remaining -= interval;
// If we're done, call onFinish() and bail
// If we're done, null timer, call onFinish(), and bail
if (remaining <= 0l) {
timer = null;
callback.onFinish();
return;
}