提交 9475c0d3 编写于 作者: J jackjintai

android: update kotlin

上级 6067f0f2
......@@ -409,13 +409,17 @@ class NormalDokitViewManager implements DokitViewManagerInterface {
dokitRootView.requestFocus();
dokitRootView.setId(R.id.dokit_contentview_id);
FrameLayout.LayoutParams dokitParams = new FrameLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT);
if (BarUtils.isStatusBarVisible(activity)) {
dokitParams.topMargin = BarUtils.getStatusBarHeight();
}
if (BarUtils.isSupportNavBar()) {
if (BarUtils.isNavBarVisible(activity)) {
dokitParams.bottomMargin = BarUtils.getNavBarHeight();
try {
if (BarUtils.isStatusBarVisible(activity)) {
dokitParams.topMargin = BarUtils.getStatusBarHeight();
}
if (BarUtils.isSupportNavBar()) {
if (BarUtils.isNavBarVisible(activity)) {
dokitParams.bottomMargin = BarUtils.getNavBarHeight();
}
}
} catch (Exception e) {
e.printStackTrace();
}
dokitRootView.setLayoutParams(dokitParams);
//添加到DecorView中 为了不和用户自己往根布局中添加view干扰
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册