From 5ce5cc2d996a463d9d60685b5b88db0f4ef40120 Mon Sep 17 00:00:00 2001 From: Fredrik Burmester Date: Sat, 24 Jan 2026 10:29:04 +0100 Subject: [PATCH] refactor(home): reposition streamystats sections after recently added --- components/home/Home.tsx | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/components/home/Home.tsx b/components/home/Home.tsx index abd53e0f..74e7c8b0 100644 --- a/components/home/Home.tsx +++ b/components/home/Home.tsx @@ -598,11 +598,14 @@ const HomeMobile = () => { style={{ paddingTop: Platform.OS === "android" ? 10 : 0 }} > {sections.map((section, index) => { - // Render Streamystats sections after Continue Watching and Next Up - // When merged, they appear after index 0; otherwise after index 1 - const streamystatsIndex = settings.mergeNextUpAndContinueWatching - ? 0 - : 1; + // Render Streamystats sections after Recently Added sections + // For default sections: place after Recently Added, before Suggested Movies (if present) + // For custom sections: place at the very end + const hasSuggestedMovies = + !settings?.streamyStatsMovieRecommendations && + !settings?.home?.sections; + const streamystatsIndex = + sections.length - 1 - (hasSuggestedMovies ? 1 : 0); const hasStreamystatsContent = settings.streamyStatsMovieRecommendations || settings.streamyStatsSeriesRecommendations ||