mirror of
https://github.com/aniyomiorg/aniyomi.git
synced 2024-11-28 17:19:00 +03:00
Rename fragment to view
This commit is contained in:
parent
dfb2487640
commit
60b3036037
4 changed files with 7 additions and 7 deletions
|
@ -32,7 +32,7 @@ class LibraryAdapter(private val fragment: LibraryFragment) : RecyclerViewPagerA
|
|||
* @return a new view.
|
||||
*/
|
||||
override fun createView(container: ViewGroup): View {
|
||||
val view = container.inflate(R.layout.item_library_category) as LibraryCategoryFragment
|
||||
val view = container.inflate(R.layout.item_library_category) as LibraryCategoryView
|
||||
view.onCreate(fragment)
|
||||
return view
|
||||
}
|
||||
|
@ -44,7 +44,7 @@ class LibraryAdapter(private val fragment: LibraryFragment) : RecyclerViewPagerA
|
|||
* @param position the position in the adapter.
|
||||
*/
|
||||
override fun bindView(view: View, position: Int) {
|
||||
(view as LibraryCategoryFragment).onBind(categories[position])
|
||||
(view as LibraryCategoryView).onBind(categories[position])
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -54,7 +54,7 @@ class LibraryAdapter(private val fragment: LibraryFragment) : RecyclerViewPagerA
|
|||
* @param position the position in the adapter.
|
||||
*/
|
||||
override fun recycleView(view: View, position: Int) {
|
||||
(view as LibraryCategoryFragment).onRecycle()
|
||||
(view as LibraryCategoryView).onRecycle()
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -17,7 +17,7 @@ import java.util.*
|
|||
*
|
||||
* @param fragment the fragment containing this adapter.
|
||||
*/
|
||||
class LibraryCategoryAdapter(val fragment: LibraryCategoryFragment) :
|
||||
class LibraryCategoryAdapter(val fragment: LibraryCategoryView) :
|
||||
FlexibleAdapter<LibraryHolder, Manga>() {
|
||||
|
||||
/**
|
||||
|
|
|
@ -25,7 +25,7 @@ import uy.kohesive.injekt.injectLazy
|
|||
* Fragment containing the library manga for a certain category.
|
||||
* Uses R.layout.fragment_library_category.
|
||||
*/
|
||||
class LibraryCategoryFragment @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null)
|
||||
class LibraryCategoryView @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null)
|
||||
: FrameLayout(context, attrs), FlexibleViewHolder.OnListItemClickListener {
|
||||
|
||||
/**
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<eu.kanade.tachiyomi.ui.library.LibraryCategoryFragment
|
||||
<eu.kanade.tachiyomi.ui.library.LibraryCategoryView
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
@ -11,4 +11,4 @@
|
|||
|
||||
</android.support.v4.widget.SwipeRefreshLayout>
|
||||
|
||||
</eu.kanade.tachiyomi.ui.library.LibraryCategoryFragment>
|
||||
</eu.kanade.tachiyomi.ui.library.LibraryCategoryView>
|
Loading…
Reference in a new issue