mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-12 11:31:08 +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)
|
||||
}
|
||||
pendingBackAction = pending
|
||||
// Android's own double-tap window (300 ms): the single action waits it out, so it is felt.
|
||||
uiHandler.postDelayed(pending, android.view.ViewConfiguration.getDoubleTapTimeout().toLong())
|
||||
// Wait 500 ms for a second Back press before performing the single-press action.
|
||||
uiHandler.postDelayed(pending, 500L)
|
||||
}
|
||||
|
||||
private fun performBackAction(double: Boolean) {
|
||||
|
||||
Reference in new issue
Block a user