From fd1c41b8bb1b79b1c9869edcee19fcfe083efd8d Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 25 Jun 2026 02:40:03 +0000 Subject: [PATCH] feat: default bottom bar to Home, Messages, Wallet, Browser, Notifications Change the default bottom navigation for new users from Home/Messages/Shorts/Discover/Favorite Algo Feeds/Notifications to Home/Messages/Wallet/Browser/Notifications. The Browser entry is gated to API 30+ since it renders a cross-process surface, matching the drawer's existing gating. Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_01WRdmDri69mLJiHpJQpJU73 --- .../amethyst/ui/navigation/bottombars/NavBarItem.kt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/navigation/bottombars/NavBarItem.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/navigation/bottombars/NavBarItem.kt index 60eea1911f..868cbdd0d0 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/navigation/bottombars/NavBarItem.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/navigation/bottombars/NavBarItem.kt @@ -376,12 +376,13 @@ val NavBarCatalog: Map = ) val DefaultBottomBarItems: List = - listOf( + listOfNotNull( NavBarItem.HOME, NavBarItem.MESSAGES, - NavBarItem.VIDEO, - NavBarItem.DISCOVER, - NavBarItem.FAVORITE_ALGO_FEEDS, + NavBarItem.WALLET, + // The embedded browser renders a cross-process surface (SurfaceControlViewHost), which needs + // API 30+. Below that the item is dropped so the feature can't be pinned or opened. + NavBarItem.BROWSER.takeIf { Build.VERSION.SDK_INT >= Build.VERSION_CODES.R }, NavBarItem.NOTIFICATIONS, )