title: How do I disable a button with a timer and keep it disabled on restart?
body: <p>So my goal is to click a button, disable it and start a timer, once the timer is up enable the button. Simple right? You would do something like this.</p>
  
  <pre><code>button1.onClick { 
  
  button1.setEnabled(false);
      new CountDownTimer(60000, 1000) { //Set Timer for 5 seconds
              public void onTick(long millisUntilFinished) {
              }
  
              @Override
              public void onFinish() {
                     button1.setEnabled(true);
              }
          }.start()
  
  }
  </code></pre>
  
  <p>However.. If the user closes the app while the timer is running the button will be enabled again, restarting the timer. so instead of having to wait for 60 seconds the user can just close the app and open it within 10 seconds.</p>
  
  <p>So my question is, how do I disable the button for 60 seconds and keep it disabled even if the user closes and opens the app until 60 seconds has passed?</p>