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()