Refactor databinding fields to parent abstract classes

This commit is contained in:
arkon
2020-04-18 14:40:18 -04:00
parent 31b94fd3ff
commit 6a532b836d
24 changed files with 38 additions and 70 deletions
@@ -22,7 +22,7 @@ import eu.kanade.tachiyomi.util.system.toast
* Uses [R.layout.history_controller].
* UI related actions should be called from here.
*/
class HistoryController : NucleusController<HistoryPresenter>(),
class HistoryController : NucleusController<HistoryControllerBinding, HistoryPresenter>(),
RootController,
NoToolbarElevationController,
FlexibleAdapter.OnUpdateListener,
@@ -37,8 +37,6 @@ class HistoryController : NucleusController<HistoryPresenter>(),
var adapter: HistoryAdapter? = null
private set
private lateinit var binding: HistoryControllerBinding
override fun getTitle(): String? {
return resources?.getString(R.string.label_recent_manga)
}
@@ -38,7 +38,7 @@ import timber.log.Timber
* Uses [R.layout.updates_controller].
* UI related actions should be called from here.
*/
class UpdatesController : NucleusController<UpdatesPresenter>(),
class UpdatesController : NucleusController<UpdatesControllerBinding, UpdatesPresenter>(),
RootController,
NoToolbarElevationController,
ActionMode.Callback,
@@ -59,8 +59,6 @@ class UpdatesController : NucleusController<UpdatesPresenter>(),
var adapter: UpdatesAdapter? = null
private set
private lateinit var binding: UpdatesControllerBinding
init {
setHasOptionsMenu(true)
}