From fd0fb969b2113aa2ac7fed5489d791b9025e17e1 Mon Sep 17 00:00:00 2001 From: Blatzar <46196380+Blatzar@users.noreply.github.com> Date: Sun, 25 Sep 2022 00:50:14 +0200 Subject: [PATCH] Real fix for Fire TV home screen categories --- .../com/lagradost/cloudstream3/ui/home/HomeFragment.kt | 9 +++++---- app/src/main/res/layout/home_select_mainpage.xml | 5 +++++ 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/com/lagradost/cloudstream3/ui/home/HomeFragment.kt b/app/src/main/java/com/lagradost/cloudstream3/ui/home/HomeFragment.kt index 11318ce6..4620b11f 100644 --- a/app/src/main/java/com/lagradost/cloudstream3/ui/home/HomeFragment.kt +++ b/app/src/main/java/com/lagradost/cloudstream3/ui/home/HomeFragment.kt @@ -256,13 +256,14 @@ class HomeFragment : Fragment() { nsfw: MaterialButton?, others: MaterialButton?, ): List>> { + // This list should be same order as home screen to aid navigation return listOf( - Pair(anime, listOf(TvType.Anime, TvType.OVA, TvType.AnimeMovie)), - Pair(cartoons, listOf(TvType.Cartoon)), - Pair(tvs, listOf(TvType.TvSeries)), - Pair(docs, listOf(TvType.Documentary)), Pair(movies, listOf(TvType.Movie, TvType.Torrent)), + Pair(tvs, listOf(TvType.TvSeries)), + Pair(anime, listOf(TvType.Anime, TvType.OVA, TvType.AnimeMovie)), Pair(asian, listOf(TvType.AsianDrama)), + Pair(cartoons, listOf(TvType.Cartoon)), + Pair(docs, listOf(TvType.Documentary)), Pair(livestream, listOf(TvType.Live)), Pair(nsfw, listOf(TvType.NSFW)), Pair(others, listOf(TvType.Others)), diff --git a/app/src/main/res/layout/home_select_mainpage.xml b/app/src/main/res/layout/home_select_mainpage.xml index 6f86d40c..ca9fa517 100644 --- a/app/src/main/res/layout/home_select_mainpage.xml +++ b/app/src/main/res/layout/home_select_mainpage.xml @@ -52,6 +52,11 @@ android:id="@+id/home_select_none" style="@style/RoundedSelectableButtonIcon"/>--> + +