SecondaryDisplay.kt: Remove redundant SurfaceTexture, preventing log spam

This commit is contained in:
OpenSauce04 2025-09-04 23:45:44 +01:00 committed by OpenSauce
parent 70f9379eef
commit 1830290e55

View File

@ -23,15 +23,12 @@ class SecondaryDisplay(val context: Context) {
private val vd: VirtualDisplay
init {
val st = SurfaceTexture(0)
st.setDefaultBufferSize(1920, 1080)
val vdSurface = Surface(st)
vd = displayManager.createVirtualDisplay(
"HiddenDisplay",
1920,
1080,
320,
vdSurface,
null,
DisplayManager.VIRTUAL_DISPLAY_FLAG_PRESENTATION
)
}