mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2025-08-05 07:41:23 +00:00
fix incorrect number of columns in creator search
This commit is contained in:
parent
cc0c400b28
commit
f7ce365618
2 changed files with 5 additions and 1 deletions
|
@ -28,6 +28,10 @@ abstract class CreatorFeedView<TFragment> : FeedView<TFragment, PlatformAuthorLi
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override fun updateSpanCount(){
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
override fun createLayoutManager(
|
override fun createLayoutManager(
|
||||||
recyclerResults: RecyclerView,
|
recyclerResults: RecyclerView,
|
||||||
context: Context
|
context: Context
|
||||||
|
|
|
@ -226,7 +226,7 @@ abstract class FeedView<TFragment, TResult, TConverted, TPager, TViewHolder> : L
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun updateSpanCount() {
|
open fun updateSpanCount() {
|
||||||
recyclerData.layoutManager.spanCount = (resources.configuration.screenWidthDp / resources.getDimension(R.dimen.landscape_threshold)).toInt() + 1
|
recyclerData.layoutManager.spanCount = (resources.configuration.screenWidthDp / resources.getDimension(R.dimen.landscape_threshold)).toInt() + 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue