From 1a3d66553cfe9ae5f9209f490c9283ccc9148dbe Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Wed, 28 Jun 2023 17:36:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E3=80=90=E7=9B=B4=E6=92=AD?= =?UTF-8?q?=E9=97=B4-=E5=A4=9A=E6=AC=A1=E7=82=B9=E5=87=BB=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E5=90=8D=E7=A7=B0=EF=BC=8C=E5=BC=B9=E5=87=BA=E5=A4=9A?= =?UTF-8?q?=E4=B8=AA=E4=B8=BB=E9=A1=B5=E8=B5=84=E6=96=99=E6=A1=86=E7=AA=97?= =?UTF-8?q?=E5=8F=A3=E3=80=91=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/yunbao/common/dialog/AbsDialogFragment.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/src/main/java/com/yunbao/common/dialog/AbsDialogFragment.java b/common/src/main/java/com/yunbao/common/dialog/AbsDialogFragment.java index c59f81807..99243dcfb 100644 --- a/common/src/main/java/com/yunbao/common/dialog/AbsDialogFragment.java +++ b/common/src/main/java/com/yunbao/common/dialog/AbsDialogFragment.java @@ -80,7 +80,9 @@ public abstract class AbsDialogFragment extends DialogFragment { @Override public void show(@NonNull FragmentManager manager, @Nullable String tag) { try { - super.show(manager, tag); + if (manager.findFragmentByTag(tag) == null) { + super.show(manager, tag); + } } catch (Exception e) { e.printStackTrace(); }