浏览代码

修复fullscreendialog不能被推起的问题;

matcha-xiaobin 1 年之前
父节点
当前提交
ae40b10684
共有 1 个文件被更改,包括 0 次插入5 次删除
  1. 0 5
      DialogX/src/main/java/com/kongzue/dialogx/util/views/DialogXBaseRelativeLayout.java

+ 0 - 5
DialogX/src/main/java/com/kongzue/dialogx/util/views/DialogXBaseRelativeLayout.java

@@ -124,7 +124,6 @@ public class DialogXBaseRelativeLayout extends RelativeLayout {
                 //做下判断,如果是底部对话框,则把paddingBottom设为0,改为推起子控件
                 MaxRelativeLayout bkgView = findViewById(R.id.bkg);
                 if (bkgView != null && bkgView.getLayoutParams() instanceof LayoutParams) {
-                    View boxCustom = bkgView.findViewById(R.id.box_custom);
                     LayoutParams bkgLp = (LayoutParams) bkgView.getLayoutParams();
                     if (bkgLp.getRules()[ALIGN_PARENT_BOTTOM] == RelativeLayout.TRUE && isAutoUnsafePlacePadding()) {
                         setPadding(extraPadding[0] + unsafePlace.left,
@@ -132,10 +131,6 @@ public class DialogXBaseRelativeLayout extends RelativeLayout {
                                 extraPadding[2] + unsafePlace.right,
                                 extraPadding[3]
                         );
-                        if (boxCustom != null) {
-                            boxCustom.setPadding(0, 0, 0, bottom);
-                            return;
-                        }
                         bkgView.setNavBarHeight(bottom);
                         if (getParentDialog() instanceof DialogXBaseBottomDialog) {
                             if (((DialogXBaseBottomDialog) getParentDialog()).isBottomNonSafetyAreaBySelf()) {