From 30bdf3a39d7ca55c31ebd972005d7d7e6170a367 Mon Sep 17 00:00:00 2001 From: louzixuan Date: Fri, 18 Oct 2024 14:22:21 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B9=B3=E8=A1=8C=E4=B8=96=E7=95=8C=E6=A8=A1?= =?UTF-8?q?=E5=BC=8F=E4=B8=8B=EF=BC=8C=E8=A7=86=E9=A2=91=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E5=85=A8=E5=B1=8F=E6=98=BE=E7=A4=BA=E5=BC=82=E5=B8=B8=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: louzixuan --- .../src/main/java/org/hapjs/common/utils/ViewUtils.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/runtime/android/runtime/src/main/java/org/hapjs/common/utils/ViewUtils.java b/core/runtime/android/runtime/src/main/java/org/hapjs/common/utils/ViewUtils.java index 6477c714..f933b936 100644 --- a/core/runtime/android/runtime/src/main/java/org/hapjs/common/utils/ViewUtils.java +++ b/core/runtime/android/runtime/src/main/java/org/hapjs/common/utils/ViewUtils.java @@ -8,6 +8,7 @@ import android.content.Context; import android.view.View; import android.view.ViewGroup; +import org.hapjs.render.MultiWindowManager; public class ViewUtils { @@ -33,7 +34,7 @@ public static void fitParentLayoutParams(ViewGroup.LayoutParams lp, View parent) } public static void fitMultiModeLayoutParams(Context context, ViewGroup.LayoutParams lp) { - if (FoldingUtils.isMultiWindowMode()) { + if (MultiWindowManager.shouldApplyMultiWindowMode(context)) { lp.width = DisplayUtil.getScreenWidth(context); } }