mirror of
https://github.com/Genymobile/scrcpy
synced 2025-01-11 17:29:37 +00:00
Update WindowManager.java
This commit is contained in:
parent
8507fea271
commit
27eacc3c11
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user