From 25b36767a8a412149004d4b0a36d42cf775f75e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9D=BC=ED=98=81?= Date: Sun, 23 Aug 2026 22:24:31 +0900 Subject: [PATCH] =?UTF-8?q?chore(app):=20=EC=97=AD=ED=95=A0=20=EB=81=9D?= =?UTF-8?q?=EB=82=9C=20NavigationDebugLogger=20=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 바텀바 표시 판정 디버깅용으로 903bc1e0 에 추가한 일회성 프로브다. 추가 이후 4개월간 수정 이력이 없고, 판정 로직(AppState.bottomBarRoutes)은 2026-05-15 타임레터 라우트 추가 이후 무변경 — 프로브가 잡던 문제는 종결됐다. - NavigationDebugLogger.kt 삭제 - AppNavigation.kt 호출 1줄 삭제 (유일 호출부) 필요해지면 903bc1e0 에서 복원 가능. --- .../afternote_fe/navigation/AppNavigation.kt | 2 - .../navigation/NavigationDebugLogger.kt | 42 ------------------- 2 files changed, 44 deletions(-) delete mode 100644 app/src/main/java/com/afternote/afternote_fe/navigation/NavigationDebugLogger.kt diff --git a/app/src/main/java/com/afternote/afternote_fe/navigation/AppNavigation.kt b/app/src/main/java/com/afternote/afternote_fe/navigation/AppNavigation.kt index ea4c2343c5..41acfa3d26 100644 --- a/app/src/main/java/com/afternote/afternote_fe/navigation/AppNavigation.kt +++ b/app/src/main/java/com/afternote/afternote_fe/navigation/AppNavigation.kt @@ -49,8 +49,6 @@ fun AppNavigation( val showBottomBar = appState.shouldShowBottomBar(currentDestination) val currentTab = appState.getCurrentNavTab(currentDestination) - NavigationDebugLogger(navEntry, currentDestination, showBottomBar, currentTab) - val onboardingNavActions = rememberOnboardingNavActions(appState.navController) val mindRecordNavActions = rememberMindRecordNavActions(appState.navController) val settingNavActions = rememberSettingNavActions(appState) diff --git a/app/src/main/java/com/afternote/afternote_fe/navigation/NavigationDebugLogger.kt b/app/src/main/java/com/afternote/afternote_fe/navigation/NavigationDebugLogger.kt deleted file mode 100644 index c0887467ce..0000000000 --- a/app/src/main/java/com/afternote/afternote_fe/navigation/NavigationDebugLogger.kt +++ /dev/null @@ -1,42 +0,0 @@ -package com.afternote.afternote_fe.navigation - -import android.util.Log -import androidx.compose.runtime.Composable -import androidx.compose.runtime.LaunchedEffect -import androidx.navigation.NavBackStackEntry -import androidx.navigation.NavDestination -import androidx.navigation.NavDestination.Companion.hasRoute -import androidx.navigation.NavDestination.Companion.hierarchy -import com.afternote.afternote_fe.BuildConfig -import com.afternote.core.ui.Route -import com.afternote.core.ui.bottombar.BottomNavTab -import com.afternote.feature.afternote.presentation.author.navigation.model.AfternoteRoute - -private const val NAV_BOTTOM_BAR_DEBUG_TAG = "NavBottomBarDebug" - -@Composable -fun NavigationDebugLogger( - navEntry: NavBackStackEntry?, - currentDestination: NavDestination?, - showBottomBar: Boolean, - currentTab: BottomNavTab, -) { - if (BuildConfig.DEBUG) { - val hierarchyRoutes = - currentDestination?.hierarchy?.mapNotNull { it.route }?.joinToString(prefix = "[", postfix = "]") - val hasRouteAfternoteGraph = currentDestination?.hasRoute(Route.Afternote::class) == true - val hasRouteAfternoteHome = currentDestination?.hasRoute(AfternoteRoute.AfternoteHomeRoute::class) == true - val hasRouteEditor = currentDestination?.hasRoute(AfternoteRoute.EditorRoute::class) == true - LaunchedEffect(navEntry?.id, currentDestination?.route, showBottomBar, currentTab) { - Log.d( - NAV_BOTTOM_BAR_DEBUG_TAG, - "entryId=${navEntry?.id} destRoute=${currentDestination?.route} " + - "hierarchyRoutes=$hierarchyRoutes " + - "shouldShowBottomBar=$showBottomBar currentNavTab=$currentTab " + - "hasRoute(Route.Afternote)=$hasRouteAfternoteGraph " + - "hasRoute(AfternoteHomeRoute)=$hasRouteAfternoteHome " + - "hasRoute(EditorRoute)=$hasRouteEditor", - ) - } - } -}