From d1e704922d2d341a3f578e4715c2fe5898d4603c Mon Sep 17 00:00:00 2001 From: gedoor Date: Fri, 29 Jan 2021 15:58:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BA=8C=E7=BB=B4=E7=A0=81?= =?UTF-8?q?=E6=89=AB=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/io/legado/app/ui/qrcode/QrCodeActivity.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/java/io/legado/app/ui/qrcode/QrCodeActivity.kt b/app/src/main/java/io/legado/app/ui/qrcode/QrCodeActivity.kt index c59783d53..72a2f980b 100644 --- a/app/src/main/java/io/legado/app/ui/qrcode/QrCodeActivity.kt +++ b/app/src/main/java/io/legado/app/ui/qrcode/QrCodeActivity.kt @@ -24,8 +24,7 @@ class QrCodeActivity : BaseActivity(), OnScanResul override fun onActivityCreated(savedInstanceState: Bundle?) { val fTag = "qrCodeFragment" - var qrCodeFragment = supportFragmentManager.findFragmentByTag(fTag) - if (qrCodeFragment == null) qrCodeFragment = QrCodeFragment() + val qrCodeFragment = QrCodeFragment() supportFragmentManager.beginTransaction() .replace(R.id.fl_content, qrCodeFragment, fTag) .commit()