mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-25 07:46:01 +00:00
fix(session): clear transient UI on pause (#45)
This commit is contained in:
1 parent
b06c6cb478
commit
d940175e4b
1 file changed
+4
@@ -1483,6 +1483,10 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback {
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun onPause() {
|
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)
|
(getSystemService(INPUT_SERVICE) as? InputManager)?.unregisterInputDeviceListener(deviceListener)
|
||||||
releaseDrawerDirection()
|
releaseDrawerDirection()
|
||||||
// A button held when the app goes away would stay held in the ring for the whole session.
|
// A button held when the app goes away would stay held in the ring for the whole session.
|
||||||
|
|||||||
Reference in new issue
Block a user