Skip to content

Commit

Permalink
平行世界模式下,视频组件全屏显示异常问题修复
Browse files Browse the repository at this point in the history
Signed-off-by: louzixuan <[email protected]>
  • Loading branch information
louzixuan committed Oct 18, 2024
1 parent 48a586d commit 30bdf3a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import org.hapjs.render.MultiWindowManager;

public class ViewUtils {

Expand All @@ -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);
}
}
Expand Down

0 comments on commit 30bdf3a

Please sign in to comment.