title: Kotlin enable swipe refresh after delay
body: <p>At some point in my code a swipe refresh layout is disabled. I use:</p>
  
  <pre><code>swipe_refresh_layout.isEnabled = false
  </code></pre>
  
  <p>Then I want to set a timer for it to be re-enabled after some seconds. I have tried the solutions given in this question. <a href="https://stackoverflow.com/questions/3072173/how-to-call-a-method-after-a-delay-in-android?page=1&amp;tab=votes#tab-top">How to call a method after a delay in Android</a></p>
  
  <p>What i am currently using is the code below and the log message appears but I can't refresh.</p>
  
  <pre><code>val r = Runnable {
      Log.d("Test", "Re-enable refresher..")
      swipe_refresh_layout.isEnabled = true
  }
  Handler().postDelayed(r, 1000)
  </code></pre>
  
  <p>Can someone help as to what I might be doing wrong. Thanks</p>