pull/1238/head
gedoor 3 years ago
parent b454816c42
commit b5872a98c9
  1. 5
      app/src/main/java/io/legado/app/ui/association/FileAssociationActivity.kt
  2. 3
      app/src/main/java/io/legado/app/ui/association/OnLineImportActivity.kt

@ -3,16 +3,13 @@ package io.legado.app.ui.association
import android.os.Bundle import android.os.Bundle
import androidx.activity.viewModels import androidx.activity.viewModels
import io.legado.app.base.VMBaseActivity import io.legado.app.base.VMBaseActivity
import io.legado.app.constant.Theme
import io.legado.app.databinding.ActivityTranslucenceBinding import io.legado.app.databinding.ActivityTranslucenceBinding
import io.legado.app.utils.startActivity import io.legado.app.utils.startActivity
import io.legado.app.utils.toastOnUi import io.legado.app.utils.toastOnUi
import io.legado.app.utils.viewbindingdelegate.viewBinding import io.legado.app.utils.viewbindingdelegate.viewBinding
class FileAssociationActivity : class FileAssociationActivity :
VMBaseActivity<ActivityTranslucenceBinding, FileAssociationViewModel>( VMBaseActivity<ActivityTranslucenceBinding, FileAssociationViewModel>() {
theme = Theme.Transparent
) {
override val binding by viewBinding(ActivityTranslucenceBinding::inflate) override val binding by viewBinding(ActivityTranslucenceBinding::inflate)

@ -4,7 +4,6 @@ import android.os.Bundle
import androidx.activity.viewModels import androidx.activity.viewModels
import io.legado.app.R import io.legado.app.R
import io.legado.app.base.VMBaseActivity import io.legado.app.base.VMBaseActivity
import io.legado.app.constant.Theme
import io.legado.app.databinding.ActivityTranslucenceBinding import io.legado.app.databinding.ActivityTranslucenceBinding
import io.legado.app.lib.dialogs.alert import io.legado.app.lib.dialogs.alert
import io.legado.app.utils.toastOnUi import io.legado.app.utils.toastOnUi
@ -15,7 +14,7 @@ import io.legado.app.utils.viewbindingdelegate.viewBinding
* 格式: legado://import/{path}?src={url} * 格式: legado://import/{path}?src={url}
*/ */
class OnLineImportActivity : class OnLineImportActivity :
VMBaseActivity<ActivityTranslucenceBinding, OnLineImportViewModel>(theme = Theme.Transparent) { VMBaseActivity<ActivityTranslucenceBinding, OnLineImportViewModel>() {
override val binding by viewBinding(ActivityTranslucenceBinding::inflate) override val binding by viewBinding(ActivityTranslucenceBinding::inflate)
override val viewModel by viewModels<OnLineImportViewModel>() override val viewModel by viewModels<OnLineImportViewModel>()

Loading…
Cancel
Save