From b5872a98c97db77df839fc02f07ccd89c76fec28 Mon Sep 17 00:00:00 2001 From: gedoor Date: Mon, 26 Jul 2021 09:47:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../io/legado/app/ui/association/FileAssociationActivity.kt | 5 +---- .../io/legado/app/ui/association/OnLineImportActivity.kt | 3 +-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/io/legado/app/ui/association/FileAssociationActivity.kt b/app/src/main/java/io/legado/app/ui/association/FileAssociationActivity.kt index 016ca3914..e58f2ade2 100644 --- a/app/src/main/java/io/legado/app/ui/association/FileAssociationActivity.kt +++ b/app/src/main/java/io/legado/app/ui/association/FileAssociationActivity.kt @@ -3,16 +3,13 @@ package io.legado.app.ui.association import android.os.Bundle import androidx.activity.viewModels import io.legado.app.base.VMBaseActivity -import io.legado.app.constant.Theme import io.legado.app.databinding.ActivityTranslucenceBinding import io.legado.app.utils.startActivity import io.legado.app.utils.toastOnUi import io.legado.app.utils.viewbindingdelegate.viewBinding class FileAssociationActivity : - VMBaseActivity( - theme = Theme.Transparent - ) { + VMBaseActivity() { override val binding by viewBinding(ActivityTranslucenceBinding::inflate) diff --git a/app/src/main/java/io/legado/app/ui/association/OnLineImportActivity.kt b/app/src/main/java/io/legado/app/ui/association/OnLineImportActivity.kt index 1f86b88c1..2aec56703 100644 --- a/app/src/main/java/io/legado/app/ui/association/OnLineImportActivity.kt +++ b/app/src/main/java/io/legado/app/ui/association/OnLineImportActivity.kt @@ -4,7 +4,6 @@ import android.os.Bundle import androidx.activity.viewModels import io.legado.app.R import io.legado.app.base.VMBaseActivity -import io.legado.app.constant.Theme import io.legado.app.databinding.ActivityTranslucenceBinding import io.legado.app.lib.dialogs.alert import io.legado.app.utils.toastOnUi @@ -15,7 +14,7 @@ import io.legado.app.utils.viewbindingdelegate.viewBinding * 格式: legado://import/{path}?src={url} */ class OnLineImportActivity : - VMBaseActivity(theme = Theme.Transparent) { + VMBaseActivity() { override val binding by viewBinding(ActivityTranslucenceBinding::inflate) override val viewModel by viewModels()