diff --git a/app/src/main/java/io/legado/app/ui/about/AboutActivity.kt b/app/src/main/java/io/legado/app/ui/about/AboutActivity.kt index 4e47cc604..150e8a027 100644 --- a/app/src/main/java/io/legado/app/ui/about/AboutActivity.kt +++ b/app/src/main/java/io/legado/app/ui/about/AboutActivity.kt @@ -1,13 +1,19 @@ package io.legado.app.ui.about import android.os.Bundle -import androidx.appcompat.app.AppCompatActivity +import androidx.lifecycle.AndroidViewModel import io.legado.app.R +import io.legado.app.base.BaseActivity +import io.legado.app.utils.getViewModel -class AboutActivity : AppCompatActivity() { +class AboutActivity : BaseActivity() { + override val viewModel: AndroidViewModel + get() = getViewModel(AndroidViewModel::class.java) + override val layoutID: Int + get() = R.layout.activity_about - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_about) + override fun onViewModelCreated(viewModel: AndroidViewModel, savedInstanceState: Bundle?) { + super.onViewModelCreated(viewModel, savedInstanceState) } + }