mirror of
https://github.com/Genymobile/scrcpy.git
synced 2026-02-22 22:34:29 +01:00
Use DisplayManagerGlobal instance
Use the client instance to communicate with the DisplayManager server. Fixes #3446 <https://github.com/Genymobile/scrcpy/issues/3446> Signed-off-by: Romain Vimont <rom@rom1v.com>
This commit is contained in:
@@ -3,12 +3,10 @@ package com.genymobile.scrcpy.wrappers;
|
||||
import com.genymobile.scrcpy.DisplayInfo;
|
||||
import com.genymobile.scrcpy.Size;
|
||||
|
||||
import android.os.IInterface;
|
||||
|
||||
public final class DisplayManager {
|
||||
private final IInterface manager;
|
||||
private final Object manager; // instance of hidden class android.hardware.display.DisplayManagerGlobal
|
||||
|
||||
public DisplayManager(IInterface manager) {
|
||||
public DisplayManager(Object manager) {
|
||||
this.manager = manager;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user