Refactor databinding fields to parent abstract classes
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user