Merge pull request #708 from toddsierens/patch-1

Update WindowManager.java
This commit is contained in:
Romain Vimont 2019-08-08 23:24:47 +02:00 committed by GitHub
commit 686733023b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,7 +14,7 @@ public final class WindowManager {
try { try {
Class<?> cls = manager.getClass(); Class<?> cls = manager.getClass();
try { try {
return (Integer) manager.getClass().getMethod("getRotation").invoke(manager); return (Integer) cls.getMethod("getRotation").invoke(manager);
} catch (NoSuchMethodException e) { } catch (NoSuchMethodException e) {
// method changed since this commit: // method changed since this commit:
// https://android.googlesource.com/platform/frameworks/base/+/8ee7285128c3843401d4c4d0412cd66e86ba49e3%5E%21/#F2 // https://android.googlesource.com/platform/frameworks/base/+/8ee7285128c3843401d4c4d0412cd66e86ba49e3%5E%21/#F2