From fe758e6e1545db7a4a95af44fd081c75e9a12aba Mon Sep 17 00:00:00 2001 From: Romain Vimont Date: Fri, 14 Jun 2019 10:11:15 +0200 Subject: [PATCH] Improve comment Rephrase to simplify and add a link to the issue. --- .../java/com/genymobile/scrcpy/wrappers/SurfaceControl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/main/java/com/genymobile/scrcpy/wrappers/SurfaceControl.java b/server/src/main/java/com/genymobile/scrcpy/wrappers/SurfaceControl.java index 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 + // if (Build.VERSION.SDK_INT < Build.VERSION_CODES.Q) { return (IBinder) CLASS.getMethod("getBuiltInDisplay", int.class).invoke(null, builtInDisplayId); } else {