pull/32/head
gedoor 6 years ago
parent 9688e98522
commit afea9193a2
  1. 4
      app/src/main/java/io/legado/app/base/BaseActivity.kt
  2. 2
      app/src/main/java/io/legado/app/ui/about/AboutActivity.kt
  3. 1
      app/src/main/java/io/legado/app/ui/replacerule/ReplaceRuleActivity.kt

@ -27,9 +27,7 @@ abstract class BaseActivity<VM : ViewModel> : AppCompatActivity() {
onViewModelCreated(viewModel, savedInstanceState)
}
open fun onViewModelCreated(viewModel: VM, savedInstanceState: Bundle?) {
}
abstract fun onViewModelCreated(viewModel: VM, savedInstanceState: Bundle?)
override fun onCreateOptionsMenu(menu: Menu?): Boolean {
return menu?.let {

@ -13,7 +13,7 @@ class AboutActivity : BaseActivity<AndroidViewModel>() {
get() = R.layout.activity_about
override fun onViewModelCreated(viewModel: AndroidViewModel, savedInstanceState: Bundle?) {
super.onViewModelCreated(viewModel, savedInstanceState)
}
}

@ -32,7 +32,6 @@ class ReplaceRuleActivity : BaseActivity<ReplaceRuleViewModel>() {
private var allEnabled = false
override fun onViewModelCreated(viewModel: ReplaceRuleViewModel, savedInstanceState: Bundle?) {
super.onViewModelCreated(viewModel, savedInstanceState)
initRecyclerView()
initDataObservers()
initSwipeToDelete()

Loading…
Cancel
Save