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); } }