public void setUnsafePadding(@Px int start, @Px int top, @Px int end, @Px int bottom) {
        log("KONGZUE DEBUG DIALOGX: setUnsafePadding=" + getParentDialog() + " t=" + top + " b=" + bottom);
        if (DialogX.ignoreUnsafeInsetsHorizontal) {
            log("  KONGZUE DEBUG DIALOGX: ignoreUnsafeInsetsHorizontal, start and end set 0");
            start = 0;
            end = 0;
        }
        if (isAlignBottomDialog(getParentDialog())) {
            log("  KONGZUE DEBUG DIALOGX: Dialog is align bottom");
            View dialogXSafetyArea = findViewWithTag("DialogXSafetyArea");
            if (dialogXSafetyArea instanceof DialogXSafetyModeInterface) {
                int dialogxSafetyMode = ((DialogXSafetyModeInterface) dialogXSafetyArea).getDialogXSafetyMode();
                boolean hasTop = (dialogxSafetyMode & 0x1) != 0;
                boolean hasLeft = (dialogxSafetyMode & 0x2) != 0;
                boolean hasBottom = (dialogxSafetyMode & 0x4) != 0;
                boolean hasRight = (dialogxSafetyMode & 0x8) != 0;
                log("    KONGZUE DEBUG DIALOGX: dialogXSafetyArea" + dialogXSafetyArea + " hasLeft=" + hasLeft + "hasTop=" + hasTop + " hasRight=" + hasRight + " hasBottom=" + hasBottom);
                dialogXSafetyArea.setPadding(hasLeft ? start : 0, hasTop ? top : 0, hasRight ? end : 0, hasBottom ? bottom : 0);
                if (hasTop) {
                    top = 0;
                }
                if (hasLeft) {
                    start = 0;
                }
                if (hasRight) {
                    end = 0;
                }
                if (hasBottom) {
                    bottom = 0;
                }
            } else {
                ViewGroup bkgView = findViewById(R.id.bkg);
                if (!((DialogXBaseBottomDialog) getParentDialog()).isBottomNonSafetyAreaBySelf() && bkgView != null) {
                    log("    KONGZUE DEBUG DIALOGX: bkgView.setPadding b=" + bottom);
                    bkgView.setPadding(0, 0, 0, bottom);
                }
                bottom = 0;
            }
        }
        if (isAutoUnsafePlacePadding()) {
            log("  KONGZUE DEBUG DIALOGX: root.setPadding t=" + top + " b=" + bottom);
            setPadding(start, top, end, bottom);
        }
    }
@author: Kongzue
@github: https://github.com/kongzue/
@homepage: http://kongzue.com/
@mail: myzcxhh@live.cn
@createTime: 2020/9/22 13:53
DialogX/src/main/java/com/kongzue/dialogx/util/views/DialogXBaseRelativeLayout.java