更新二维码扫码

pull/840/head
gedoor 4 years ago
parent d7a7f35bd7
commit d1e704922d
  1. 3
      app/src/main/java/io/legado/app/ui/qrcode/QrCodeActivity.kt

@ -24,8 +24,7 @@ class QrCodeActivity : BaseActivity<ActivityQrcodeCaptureBinding>(), OnScanResul
override fun onActivityCreated(savedInstanceState: Bundle?) { override fun onActivityCreated(savedInstanceState: Bundle?) {
val fTag = "qrCodeFragment" val fTag = "qrCodeFragment"
var qrCodeFragment = supportFragmentManager.findFragmentByTag(fTag) val qrCodeFragment = QrCodeFragment()
if (qrCodeFragment == null) qrCodeFragment = QrCodeFragment()
supportFragmentManager.beginTransaction() supportFragmentManager.beginTransaction()
.replace(R.id.fl_content, qrCodeFragment, fTag) .replace(R.id.fl_content, qrCodeFragment, fTag)
.commit() .commit()

Loading…
Cancel
Save