Display and control your Android device
Improve comment
Romain Vimontfe758e6e1545
diff --git a/server/src/main/java/com/genymobile/scrcpy/wrappers/SurfaceControl.java b/server/src/main/java/com/genymobile/scrcpy/wrappers/SurfaceControl.javaindex e028dcd8..9f479f03 100644--- a/server/src/main/java/com/genymobile/scrcpy/wrappers/SurfaceControl.java+++ b/server/src/main/java/com/genymobile/scrcpy/wrappers/SurfaceControl.java@@ -78,8 +78,8 @@ public final class SurfaceControl {public static IBinder getBuiltInDisplay(int builtInDisplayId) {try {- // Android Q does not have this method anymore but has a- // replacement.+ // the method signature has changed in Android Q+ // <https://github.com/Genymobile/scrcpy/issues/586>if (Build.VERSION.SDK_INT < Build.VERSION_CODES.Q) {return (IBinder) CLASS.getMethod("getBuiltInDisplay", int.class).invoke(null, builtInDisplayId);} else {