SecondaryDisplay.kt: Remove redundant SurfaceTexture, preventing log spam
This commit is contained in:
parent
beba099fed
commit
1e2dd5ea78
1 changed files with 1 additions and 4 deletions
|
|
@ -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
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue