 <p>make <code>timerHolder</code> object <code>null</code> after canceling it.</p> <pre><code>if(Class.isAddTime()){ timerHolder.cancel(); timerHolder=null; AddTime(); Class.isAddTime = false; } </code></pre>