From 27eacc3c11d0d40d4a125629a2ade9f459fc6d77 Mon Sep 17 00:00:00 2001 From: toddsierens <42444866+toddsierens@users.noreply.github.com> Date: Thu, 8 Aug 2019 17:17:48 -0400 Subject: [PATCH] Update WindowManager.java --- .../main/java/com/genymobile/scrcpy/wrappers/WindowManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/main/java/com/genymobile/scrcpy/wrappers/WindowManager.java b/server/src/main/java/com/genymobile/scrcpy/wrappers/WindowManager.java index 56330f9d..52096461 100644 --- a/server/src/main/java/com/genymobile/scrcpy/wrappers/WindowManager.java +++ b/server/src/main/java/com/genymobile/scrcpy/wrappers/WindowManager.java @@ -14,7 +14,7 @@ public final class WindowManager { try { Class cls = manager.getClass(); try { - return (Integer) manager.getClass().getMethod("getRotation").invoke(manager); + return (Integer) cls.getMethod("getRotation").invoke(manager); } catch (NoSuchMethodException e) { // method changed since this commit: // https://android.googlesource.com/platform/frameworks/base/+/8ee7285128c3843401d4c4d0412cd66e86ba49e3%5E%21/#F2