fix(session): clear transient UI on pause (#45)

This commit is contained in:
Kurt Himebauch authored and GitHub committed 2026-09-27 20:37:58 -04:00
1 parent b06c6cb478
commit d940175e4b
1 file changed
+4
@@ -1483,6 +1483,10 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback {
}
override fun onPause() {
// Do not carry transient session UI across an app/display transition. In particular, the
// drawer's dim layer can otherwise remain over Steam when this activity returns.
drawerOpen = false
pcKeyboardOpen = false
(getSystemService(INPUT_SERVICE) as? InputManager)?.unregisterInputDeviceListener(deviceListener)
releaseDrawerDirection()
// A button held when the app goes away would stay held in the ring for the whole session.