fix incorrect number of columns in creator search

This commit is contained in:
Kai 2024-10-23 15:57:44 -05:00
commit f7ce365618
No known key found for this signature in database
2 changed files with 5 additions and 1 deletions

View file

@ -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

View file

@ -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
} }