mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-22 22:36:00 +00:00
Keep the manual second screen option when Dual screen is Off (#1777)
This commit is contained in:
1 parent
a3da6f0bda
commit
7d3d338fb9
3 files changed
+3
-5
No files matched your search
@@ -2909,9 +2909,8 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback {
|
||||
private fun refreshSecondScreenDisplays() {
|
||||
if (!::displayManager.isInitialized) return
|
||||
val primaryId = shownOnDisplayId
|
||||
val dualOff = SessionPrefs.dualScreenMode(this) == com.droiddeck.launcher.input.DualScreen.MODE_OFF
|
||||
val candidates = SecondScreenDisplays.available(displayManager, primaryId)
|
||||
.filter { !dualOff && (glassesScreen == null || it.id != glasses.displayId) }
|
||||
.filter { glassesScreen == null || it.id != glasses.displayId }
|
||||
val oldIds = secondScreenDisplays.map { it.id }.toSet()
|
||||
secondScreenDisplays = candidates
|
||||
val newIds = candidates.map { it.id }.toSet()
|
||||
|
||||
Reference in new issue
Block a user