fix(session): address review on the landscape and portrait resolution split

Accept generated portrait sizes on reload, use the right orientation and output target when deciding follow screen, show the real size behind each Follow option, treat a saved portrait Desktop resolution as chosen, and update the orientation hint in every locale.
This commit is contained in:
FX192 committed 2026-11-21 22:46:45 +03:00
1 parent 50dace9958
commit a9054aac3f
38 files changed
+78 -42

No files matched your search

@@ -50,6 +50,21 @@ class PortraitResolutionTest {
assertFalse(SessionDisplay.isLink(SessionPrefs.resolutionStored(app, "steam", panel, true)))
}
@Test fun aGeneratedPortraitSizeSurvivesAReload() {
SessionPrefs.setResolutionChoice(app, "steam", "2560x1440")
SessionPrefs.setResolutionChoice(app, "steam", SessionDisplay.LINK_PORTRAIT)
assertEquals("1440x2560", SessionPrefs.resolutionStored(app, "steam", panel, true))
assertEquals("2560x1440", SessionPrefs.resolutionChoice(app, "steam", panel, false))
assertEquals("1440x2560", SessionPrefs.resolutionChoice(app, "steam", panel, true))
}
@Test fun aSavedDesktopResolutionInEitherOrientationCountsAsChosen() {
SessionPrefs.setResolutionChoice(app, SessionService.MODE_DESKTOP, "1080p", portrait = true)
assertTrue(SessionPrefs.resolutionChosen(app, SessionService.MODE_DESKTOP, true))
assertEquals(SessionService.MODE_DESKTOP,
SessionPrefs.displayMode(app, SessionService.MODE_RUN, com.droiddeck.launcher.runtime.UserApps.SCRIPT_LAUNCHER))
}
@Test fun modesKeepSeparateChoices() {
SessionPrefs.setResolutionChoice(app, "steam", "1080p", portrait = true)
assertEquals(SessionDisplay.LINK_LANDSCAPE, SessionPrefs.resolutionStored(app, "lxqt", panel, true))