mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-21 22:05:59 +00:00
Let the session activity resize
It was declared non-resizable. On a foldable that means the system keeps a fixed-shape window across the fold and stretches it onto the other panel — the app never receives a size change, so the compositor's re-fit, the swapchain rebind and the letterboxing all had nothing to react to. Resizable, the window follows the panel and the picture keeps its shape with bars.
This commit is contained in:
1 parent
de1bfb6b94
commit
357ba28b6a
1 file changed
+6
-1
@@ -40,13 +40,18 @@
|
||||
A session keeps a Surface, a compositor thread and a proot tree alive; a configuration
|
||||
change must not tear that down and rebuild it, so the activity handles them itself.
|
||||
Landscape only: gamescope is told one output size when it starts.
|
||||
|
||||
Resizable, deliberately: a foldable opening or closing changes the window, and the
|
||||
compositor re-fits the picture with bars. Declared non-resizable, the system keeps a
|
||||
fixed-shape window instead and STRETCHES it onto the other panel — the app never sees a
|
||||
size change, so nothing it does can help.
|
||||
-->
|
||||
<activity
|
||||
android:name=".SessionActivity"
|
||||
android:exported="false"
|
||||
android:theme="@style/SessionTheme"
|
||||
android:screenOrientation="sensorLandscape"
|
||||
android:resizeableActivity="false"
|
||||
android:resizeableActivity="true"
|
||||
android:configChanges="orientation|screenSize|screenLayout|smallestScreenSize|keyboard|keyboardHidden|navigation|uiMode|density" />
|
||||
|
||||
<!--
|
||||
|
||||
Reference in new issue
Block a user