Jelajahi Sumber

set bottom nav bar at center -2

Khubaib 6 bulan lalu
induk
melakukan
6fee91c169

+ 1 - 1
app/src/main/java/com/vpn/fastestvpnservice/screensTV/BottomBarMainScreenTV.kt

@@ -212,7 +212,7 @@ fun RowScope.AddItemTV(
 //            }
             .onFocusChanged {
                 isFocused = it.isFocused
-//                if (it.isFocused) isClicked = it.isFocused
+                isClicked = it.isFocused
 
                 Log.d(
                     "test_bottom_navbar",

+ 2 - 2
app/src/main/java/com/vpn/fastestvpnservice/screensTV/SplashScreenTV.kt

@@ -85,11 +85,11 @@ fun SplashTV(navHostController: NavHostController) {
 //                        serverListViewModelSplash.setCountryData()
 //                        splashViewModel.serverDataApi()
                 navHostController.popBackStack()
-                navHostController.navigate(ScreenTV.LoginTV.route)
+                navHostController.navigate(ScreenTV.BottomBarTV.route)
             } else {
 //            Toast.makeText(context, "else $isLoggedIn", Toast.LENGTH_SHORT).show()
                 navHostController.popBackStack()
-                navHostController.navigate(ScreenTV.LoginTV.route)
+                navHostController.navigate(ScreenTV.BottomBarTV.route)
             }
 
         }