mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-28 07:50:31 +05:30
fix some scrolling issues
This commit is contained in:
parent
214aaf6612
commit
576f72bc36
@ -24,7 +24,7 @@ class HomeModel : ViewModel() {
|
|||||||
runOrError(appContext) {
|
runOrError(appContext) {
|
||||||
if (trending.value.isNullOrEmpty()) {
|
if (trending.value.isNullOrEmpty()) {
|
||||||
trending.postValue(
|
trending.postValue(
|
||||||
RetrofitInstance.api.getTrending(trendingRegion).withMaxSize(20)
|
RetrofitInstance.api.getTrending(trendingRegion).withMaxSize(10)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -37,13 +37,20 @@
|
|||||||
style="@style/HomeCategoryTitle"
|
style="@style/HomeCategoryTitle"
|
||||||
android:text="@string/trending" />
|
android:text="@string/trending" />
|
||||||
|
|
||||||
<androidx.recyclerview.widget.RecyclerView
|
<RelativeLayout
|
||||||
android:id="@+id/trendingRV"
|
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginHorizontal="10dp"
|
android:descendantFocusability="blocksDescendants">
|
||||||
android:nestedScrollingEnabled="false"
|
|
||||||
android:visibility="gone" />
|
<androidx.recyclerview.widget.RecyclerView
|
||||||
|
android:id="@+id/trendingRV"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginHorizontal="10dp"
|
||||||
|
android:nestedScrollingEnabled="false"
|
||||||
|
android:visibility="gone" />
|
||||||
|
|
||||||
|
</RelativeLayout>
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/playlistsTV"
|
android:id="@+id/playlistsTV"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user