Skip to content

Instantly share code, notes, and snippets.

@igorwojda
Last active May 17, 2018 08:31
Show Gist options
  • Save igorwojda/c96c5bed8f264f989e596309c43fe8a0 to your computer and use it in GitHub Desktop.
Save igorwojda/c96c5bed8f264f989e596309c43fe8a0 to your computer and use it in GitHub Desktop.
kotlin-rxJava-double-click-detection
button.clicks() //Extension defined by RxBinding library
.buffer(250, TimeUnit.MILLISECONDS)
.map { it.size }
.filter { it >= 2 }
.subscribe{ Log.d("TAG", "Double click") }
@dbof10
Copy link

dbof10 commented May 17, 2018

The code doesn't work well. Using logcat to know why. Anyone find this gist. Don't use

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment