From f60303491fdc83c817674139eb65a77e30913ee5 Mon Sep 17 00:00:00 2001 From: chenli Date: Mon, 13 Dec 2021 18:09:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=B8=80=E4=B8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/cl/xdialog/base/BaseDialogFragment.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xdialog/src/main/java/com/cl/xdialog/base/BaseDialogFragment.java b/xdialog/src/main/java/com/cl/xdialog/base/BaseDialogFragment.java index c45a5ea..679b407 100644 --- a/xdialog/src/main/java/com/cl/xdialog/base/BaseDialogFragment.java +++ b/xdialog/src/main/java/com/cl/xdialog/base/BaseDialogFragment.java @@ -95,9 +95,10 @@ public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Override public void onViewCreated(View view, @Nullable Bundle savedInstanceState) { + super.onViewCreated(view, savedInstanceState); //去除Dialog默认头部 Dialog dialog = getDialog(); - dialog.requestWindowFeature(Window.FEATURE_NO_TITLE); +// dialog.requestWindowFeature(Window.FEATURE_NO_TITLE); dialog.setCanceledOnTouchOutside(isCancelableOutside()); if (dialog.getWindow() != null && getDialogAnimationRes() > 0) { dialog.getWindow().setWindowAnimations(getDialogAnimationRes()); @@ -105,7 +106,6 @@ public void onViewCreated(View view, @Nullable Bundle savedInstanceState) { if (getOnKeyListener() !=null){ dialog.setOnKeyListener(getOnKeyListener()); } - super.onViewCreated(view, savedInstanceState); } protected DialogInterface.OnKeyListener getOnKeyListener() {