mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 06:10:31 +05:30
commit
6c97598ac6
@ -38,7 +38,7 @@ abstract class DoubleTapListener : View.OnClickListener {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun recentDoubleClick(): Boolean {
|
private fun recentDoubleClick(): Boolean {
|
||||||
return elapsedTime() - lastDoubleClick < MAX_TIME_DIFF
|
return elapsedTime() - lastDoubleClick < MAX_TIME_DIFF / 2
|
||||||
}
|
}
|
||||||
|
|
||||||
fun elapsedTime() = SystemClock.elapsedRealtime()
|
fun elapsedTime() = SystemClock.elapsedRealtime()
|
||||||
|
Loading…
Reference in New Issue
Block a user