Reorganize layouts by feature
This commit is contained in:
@@ -54,7 +54,7 @@ class DownloadAdapter : RecyclerView.Adapter<DownloadHolder>() {
|
||||
* @return a new view holder for a manga.
|
||||
*/
|
||||
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): DownloadHolder {
|
||||
val view = parent.inflate(R.layout.item_download)
|
||||
val view = parent.inflate(R.layout.download_item)
|
||||
return DownloadHolder(view)
|
||||
}
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ import eu.kanade.tachiyomi.data.download.DownloadService
|
||||
import eu.kanade.tachiyomi.data.download.model.Download
|
||||
import eu.kanade.tachiyomi.source.model.Page
|
||||
import eu.kanade.tachiyomi.ui.base.controller.NucleusController
|
||||
import kotlinx.android.synthetic.main.activity_download_manager.view.*
|
||||
import kotlinx.android.synthetic.main.download_controller.view.*
|
||||
import rx.Observable
|
||||
import rx.Subscription
|
||||
import rx.android.schedulers.AndroidSchedulers
|
||||
@@ -41,7 +41,7 @@ class DownloadController : NucleusController<DownloadPresenter>() {
|
||||
}
|
||||
|
||||
override fun inflateView(inflater: LayoutInflater, container: ViewGroup): View {
|
||||
return inflater.inflate(R.layout.activity_download_manager, container, false)
|
||||
return inflater.inflate(R.layout.download_controller, container, false)
|
||||
}
|
||||
|
||||
override fun createPresenter(): DownloadPresenter {
|
||||
|
||||
@@ -3,11 +3,11 @@ package eu.kanade.tachiyomi.ui.download
|
||||
import android.support.v7.widget.RecyclerView
|
||||
import android.view.View
|
||||
import eu.kanade.tachiyomi.data.download.model.Download
|
||||
import kotlinx.android.synthetic.main.item_download.view.*
|
||||
import kotlinx.android.synthetic.main.download_item.view.*
|
||||
|
||||
/**
|
||||
* Class used to hold the data of a download.
|
||||
* All the elements from the layout file "item_download" are available in this class.
|
||||
* All the elements from the layout file "download_item" are available in this class.
|
||||
*
|
||||
* @param view the inflated view for this holder.
|
||||
* @constructor creates a new download holder.
|
||||
|
||||
Reference in New Issue
Block a user