mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-25 07:46:01 +00:00
Restore 500 ms Back double-press window (#193)
This commit is contained in:
1 parent
f38def4f4c
commit
c176a0d6fa
1 file changed
+2
-2
@@ -596,8 +596,8 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback {
|
|||||||
performBackAction(double = false)
|
performBackAction(double = false)
|
||||||
}
|
}
|
||||||
pendingBackAction = pending
|
pendingBackAction = pending
|
||||||
// Android's own double-tap window (300 ms): the single action waits it out, so it is felt.
|
// Wait 500 ms for a second Back press before performing the single-press action.
|
||||||
uiHandler.postDelayed(pending, android.view.ViewConfiguration.getDoubleTapTimeout().toLong())
|
uiHandler.postDelayed(pending, 500L)
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun performBackAction(double: Boolean) {
|
private fun performBackAction(double: Boolean) {
|
||||||
|
|||||||
Reference in new issue
Block a user