Restore 500 ms Back double-press window (#193)

This commit is contained in:
Kurt Himebauch authored and GitHub committed 2026-10-04 03:40:10 +00:00
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) {