From 5695b22250cd171c8cbc21b57577731315084b08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joaquim=20St=C3=A4hli?= Date: Tue, 12 Dec 2023 17:51:37 +0100 Subject: [PATCH] Swallow the back event --- .../main/java/ch/srgssr/pillarbox/demo/tv/examples/Examples.kt | 1 + .../ch/srgssr/pillarbox/demo/tv/ui/integrationLayer/ListsHome.kt | 1 + 2 files changed, 2 insertions(+) diff --git a/pillarbox-demo-tv/src/main/java/ch/srgssr/pillarbox/demo/tv/examples/Examples.kt b/pillarbox-demo-tv/src/main/java/ch/srgssr/pillarbox/demo/tv/examples/Examples.kt index 10c1f4963..b12d5e176 100644 --- a/pillarbox-demo-tv/src/main/java/ch/srgssr/pillarbox/demo/tv/examples/Examples.kt +++ b/pillarbox-demo-tv/src/main/java/ch/srgssr/pillarbox/demo/tv/examples/Examples.kt @@ -211,6 +211,7 @@ private fun ExamplesSection( } else if (navController.previousBackStackEntry == null) { focusedIndex = -1 focusManager.moveFocus(FocusDirection.Up) + true } else { false } diff --git a/pillarbox-demo-tv/src/main/java/ch/srgssr/pillarbox/demo/tv/ui/integrationLayer/ListsHome.kt b/pillarbox-demo-tv/src/main/java/ch/srgssr/pillarbox/demo/tv/ui/integrationLayer/ListsHome.kt index 483900106..d63f6e2a9 100644 --- a/pillarbox-demo-tv/src/main/java/ch/srgssr/pillarbox/demo/tv/ui/integrationLayer/ListsHome.kt +++ b/pillarbox-demo-tv/src/main/java/ch/srgssr/pillarbox/demo/tv/ui/integrationLayer/ListsHome.kt @@ -297,6 +297,7 @@ private fun ListsSection( } else if (navController.previousBackStackEntry == null) { focusedIndex = -1 focusManager.moveFocus(FocusDirection.Up) + true } else { false }