mirror of
https://github.com/gedoor/legado.git
synced 2024-09-01 09:34:25 +08:00
up aboutActivity
This commit is contained in:
parent
c16319a4bf
commit
e29e6fcbaa
@ -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<AndroidViewModel>() {
|
||||
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)
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user