From ef2628d14722328d948523ed15453e58c5c4b745 Mon Sep 17 00:00:00 2001 From: twwang Date: Fri, 11 Sep 2020 12:56:32 +0800 Subject: [PATCH] zhihu app liveroom cann't reponse back keycode & close button App compatibility: zhihu app liveroom get orientation is landscape, but the window is portrait. --- core/java/android/content/res/Resources.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/java/android/content/res/Resources.java b/core/java/android/content/res/Resources.java index ad113075..5b0904b8 100644 --- a/core/java/android/content/res/Resources.java +++ b/core/java/android/content/res/Resources.java @@ -1819,7 +1819,9 @@ public class Resources { * @return The resource's current configuration. */ public Configuration getConfiguration() { - return mResourcesImpl.getConfiguration(); + Configuration cfg = mResourcesImpl.getConfiguration(); + cfg.orientation = Configuration.ORIENTATION_PORTRAIT; + return cfg; } /** @hide */ -- Gitee