Jelajahi Sumber

custom navigation working fine on TV, focus working etc...

Khubaib 9 bulan lalu
induk
melakukan
ca486f1567

+ 6 - 6
app/src/main/java/com/vpn/fastestvpnservice/MainActivity.kt

@@ -140,12 +140,12 @@ open class MainActivity : DockActivity(), ConnectivityReceiver.ConnectivityRecei
 
     }
 
-    override fun onBackPressed() {
-        super.onBackPressed()
-        Toast.makeText(
-            baseContext, "onBackPressed()", Toast.LENGTH_SHORT
-        ).show()
-    }
+//    override fun onBackPressed() {
+//        super.onBackPressed()
+//        Toast.makeText(
+//            baseContext, "onBackPressed()", Toast.LENGTH_SHORT
+//        ).show()
+//    }
     fun hideSystemUI() {
 
         //Hides the ugly action bar at the top

+ 24 - 23
app/src/main/java/com/vpn/fastestvpnservice/navigation/CustomBottomBarTV.kt

@@ -39,10 +39,7 @@ import androidx.navigation.NavHostController
 import androidx.navigation.compose.currentBackStackEntryAsState
 import androidx.navigation.compose.rememberNavController
 import com.vpn.fastestvpnservice.R
-import com.vpn.fastestvpnservice.screensTV.BottomBarTV
 import com.vpn.fastestvpnservice.sealedClass.BottomBarScreen
-import com.vpn.fastestvpnservice.utils.StaticMethods
-import com.vpn.fastestvpnservice.utils.isTablet
 
 val screens = listOf(
     BottomBarScreen.Home,
@@ -63,6 +60,10 @@ var isSecondItemPressed: MutableState<Boolean> = mutableStateOf(false)
 var isThirdItemPressed: MutableState<Boolean> = mutableStateOf(false)
 var isFourthItemPressed: MutableState<Boolean> = mutableStateOf(false)
 
+var isFirstItemFocused: MutableState<Boolean> = mutableStateOf(false)
+var isSecondItemFocused: MutableState<Boolean> = mutableStateOf(false)
+var isThirdItemFocused: MutableState<Boolean> = mutableStateOf(false)
+var isFourthItemFocused: MutableState<Boolean> = mutableStateOf(false)
 
 @Composable
 fun CustomBottomBarTV(navHostController: NavHostController, activity: ComponentActivity) {
@@ -103,10 +104,10 @@ fun BottomBarNavTV(
     navHostController: NavHostController,
     screens: List<BottomBarScreen>
 ) {
-    var isFirstItemFocused by remember { mutableStateOf(false) }
-    var isSecondItemFocused by remember { mutableStateOf(false) }
-    var isThirdItemFocused by remember { mutableStateOf(false) }
-    var isFourthItemFocused by remember { mutableStateOf(false) }
+//    var isFirstItemFocused by remember { mutableStateOf(false) }
+//    var isSecondItemFocused by remember { mutableStateOf(false) }
+//    var isThirdItemFocused by remember { mutableStateOf(false) }
+//    var isFourthItemFocused by remember { mutableStateOf(false) }
 
     val focusRequester1 = remember { FocusRequester() }
     val focusRequester2 = remember { FocusRequester() }
@@ -198,16 +199,16 @@ fun BottomBarNavTV(
             verticalAlignment = Alignment.CenterVertically
         ) {
             Surface(
-                color = if (isFirstItemFocused) Color.LightGray
+                color = if (isFirstItemFocused.value) Color.LightGray
                 else colorResource(id = R.color.background_color_gray),
                 modifier = Modifier
                     .focusRequester(focusRequester1)
                     .onFocusChanged {
-                        Log.d("is_focused","1st")
-                        isFirstItemFocused = it.isFocused
+                        Log.d("is_focused", "1st")
+                        isFirstItemFocused.value = it.isFocused
 
                         if (it.isFocused) {
-                            Log.d("is_focused","1st if")
+                            Log.d("is_focused", "1st if")
                             selectedItemIndex.value = 0
                             isClicked = true
                         }
@@ -232,15 +233,15 @@ fun BottomBarNavTV(
                 )
             }
             Surface(
-                color = if (isSecondItemFocused) Color.LightGray else colorResource(id = R.color.background_color_gray),
+                color = if (isSecondItemFocused.value) Color.LightGray else colorResource(id = R.color.background_color_gray),
                 modifier = Modifier
                     .focusRequester(focusRequester2)
                     .onFocusChanged {
-                        Log.d("is_focused","2nd")
-                        isSecondItemFocused = it.isFocused
+                        Log.d("is_focused", "2nd")
+                        isSecondItemFocused.value = it.isFocused
 
                         if (it.isFocused) {
-                            Log.d("is_focused","2nd if")
+                            Log.d("is_focused", "2nd if")
                             selectedItemIndex.value = 1
                             isClicked = true
                         }
@@ -265,16 +266,16 @@ fun BottomBarNavTV(
                 )
             }
             Surface(
-                color = if (isThirdItemFocused) Color.LightGray else
+                color = if (isThirdItemFocused.value) Color.LightGray else
                     colorResource(id = R.color.background_color_gray),
                 modifier = Modifier
                     .focusRequester(focusRequester3)
                     .onFocusChanged {
-                        Log.d("is_focused","3rd")
-                        isThirdItemFocused = it.isFocused
+                        Log.d("is_focused", "3rd")
+                        isThirdItemFocused.value = it.isFocused
 
                         if (it.isFocused) {
-                            Log.d("is_focused","3rd if")
+                            Log.d("is_focused", "3rd if")
                             selectedItemIndex.value = 2
                             isClicked = true
                         }
@@ -299,15 +300,15 @@ fun BottomBarNavTV(
                 )
             }
             Surface(
-                color = if (isFourthItemFocused) Color.LightGray else
+                color = if (isFourthItemFocused.value) Color.LightGray else
                     colorResource(id = R.color.background_color_gray),
                 modifier = Modifier
                     .focusRequester(focusRequester4)
                     .onFocusChanged {
-                        Log.d("is_focused","4th")
-                        isFourthItemFocused = it.isFocused
+                        Log.d("is_focused", "4th")
+                        isFourthItemFocused.value = it.isFocused
                         if (it.isFocused) {
-                            Log.d("is_focused","4th if")
+                            Log.d("is_focused", "4th if")
                             selectedItemIndex.value = 3
                             isClicked = true
                         }

+ 29 - 14
app/src/main/java/com/vpn/fastestvpnservice/screensTV/AccountScreenTV.kt

@@ -6,6 +6,7 @@ import android.os.Handler
 import android.os.Looper
 import android.util.Log
 import android.widget.Toast
+import androidx.activity.compose.BackHandler
 import androidx.compose.foundation.ExperimentalFoundationApi
 import androidx.compose.foundation.Image
 import androidx.compose.foundation.LocalOverscrollConfiguration
@@ -76,8 +77,9 @@ import androidx.navigation.NavHostController
 import com.vpn.fastestvpnservice.R
 import com.vpn.fastestvpnservice.helpers.BasePreferenceHelper
 import com.vpn.fastestvpnservice.navigation.isAccountScreenPressed
+import com.vpn.fastestvpnservice.navigation.isFirstItemPressed
+import com.vpn.fastestvpnservice.navigation.isFourthItemFocused
 import com.vpn.fastestvpnservice.navigation.isFourthItemPressed
-import com.vpn.fastestvpnservice.navigation.isThirdItemPressed
 import com.vpn.fastestvpnservice.screens.bottomNavBarScreens.LogoutDialog
 import com.vpn.fastestvpnservice.screens.bottomNavBarScreens.act
 import com.vpn.fastestvpnservice.sealedClass.Screen
@@ -101,6 +103,19 @@ fun AccountTV(navHostController: NavHostController,
     val accountViewModel: AccountViewModel = viewModel()
     val focusRequester1 = remember { FocusRequester() }
 
+    BackHandler {
+//        Toast.makeText(
+//            context, "BackHandler Account TV - ${isFourthItemFocused.value}", Toast.LENGTH_SHORT
+//        ).show()
+        if (isFourthItemFocused.value) {
+            navHostController.popBackStack()
+            isFirstItemPressed.value = true
+//            customNavigation(navHostController, BottomBarScreen.Home)
+        } else {
+            isFourthItemPressed.value = true
+        }
+    }
+
     CompositionLocalProvider(
         LocalOverscrollConfiguration provides null
     ) {
@@ -465,21 +480,21 @@ fun ColumnScope.AddRowAccountIconTV(
             .onKeyEvent {
                 if (isLastRow) {
                     if (it.type == KeyEventType.KeyDown && it.key == Key.DirectionDown) {
-                        Toast
-                            .makeText(
-                                context, "KeyDown & DirectionDown Email", Toast.LENGTH_SHORT
-                            )
-                            .show()
+//                        Toast
+//                            .makeText(
+//                                context, "KeyDown & DirectionDown Email", Toast.LENGTH_SHORT
+//                            )
+//                            .show()
 //                        customNavigation(navHostController, BottomBarScreen.Help)
                         isFourthItemPressed.value = true
                         true
                     }
                     else if (it.type == KeyEventType.KeyUp && it.key == Key.DirectionUp) {
-                        Toast
-                            .makeText(
-                                context, "KeyUp & DirectionUp Email", Toast.LENGTH_SHORT
-                            )
-                            .show()
+//                        Toast
+//                            .makeText(
+//                                context, "KeyUp & DirectionUp Email", Toast.LENGTH_SHORT
+//                            )
+//                            .show()
                         false
                     }
                     else {
@@ -493,9 +508,9 @@ fun ColumnScope.AddRowAccountIconTV(
             }
             .focusable()
             .clickable {
-                Toast.makeText(
-                    context, text, Toast.LENGTH_SHORT
-                ).show()
+//                Toast.makeText(
+//                    context, text, Toast.LENGTH_SHORT
+//                ).show()
             }
 //            .border(
 //                1.dp, Color.Blue, RoundedCornerShape(40.dp)

+ 26 - 16
app/src/main/java/com/vpn/fastestvpnservice/screensTV/HelpScreenTV.kt

@@ -1,13 +1,11 @@
 package com.vpn.fastestvpnservice.screensTV
 
 import android.app.Activity
-import android.util.Log
-import android.widget.Toast
+import androidx.activity.compose.BackHandler
 import androidx.compose.foundation.ExperimentalFoundationApi
 import androidx.compose.foundation.Image
 import androidx.compose.foundation.LocalOverscrollConfiguration
 import androidx.compose.foundation.background
-import androidx.compose.foundation.clickable
 import androidx.compose.foundation.focusable
 import androidx.compose.foundation.layout.Arrangement
 import androidx.compose.foundation.layout.Box
@@ -63,11 +61,10 @@ import androidx.core.view.WindowCompat
 import androidx.navigation.NavHostController
 import com.vpn.fastestvpnservice.R
 import com.vpn.fastestvpnservice.beans.isDarkTheme
-import com.vpn.fastestvpnservice.navigation.customNavigation
+import com.vpn.fastestvpnservice.navigation.isFirstItemPressed
 import com.vpn.fastestvpnservice.navigation.isHelpScreenPressed
-import com.vpn.fastestvpnservice.navigation.isSecondItemPressed
+import com.vpn.fastestvpnservice.navigation.isThirdItemFocused
 import com.vpn.fastestvpnservice.navigation.isThirdItemPressed
-import com.vpn.fastestvpnservice.sealedClass.BottomBarScreen
 import com.vpn.fastestvpnservice.sealedClass.Screen
 
 @OptIn(ExperimentalFoundationApi::class)
@@ -77,6 +74,19 @@ fun HelpTV(navHostController: NavHostController) {
     val focusRequester2 = remember { FocusRequester() }
     val context = LocalContext.current
 
+    BackHandler {
+//        Toast.makeText(
+//            context, "BackHandler Help TV - ${isThirdItemFocused.value}", Toast.LENGTH_SHORT
+//        ).show()
+        if (isThirdItemFocused.value) {
+            navHostController.popBackStack()
+            isFirstItemPressed.value = true
+//            customNavigation(navHostController, BottomBarScreen.Home)
+        } else {
+            isThirdItemPressed.value = true
+        }
+    }
+
     CompositionLocalProvider(
         LocalOverscrollConfiguration provides null
     ) {
@@ -206,21 +216,21 @@ fun ColumnScope.AddRowTV(
             .onKeyEvent {
                 if (isLastRow) {
                     if (it.type == KeyEventType.KeyDown && it.key == Key.DirectionDown) {
-                        Toast
-                            .makeText(
-                                context, "KeyDown & DirectionDown Email", Toast.LENGTH_SHORT
-                            )
-                            .show()
+//                        Toast
+//                            .makeText(
+//                                context, "KeyDown & DirectionDown Email", Toast.LENGTH_SHORT
+//                            )
+//                            .show()
 //                        customNavigation(navHostController, BottomBarScreen.Help)
                         isThirdItemPressed.value = true
                         true
                     }
                     else if (it.type == KeyEventType.KeyUp && it.key == Key.DirectionUp) {
-                        Toast
-                            .makeText(
-                                context, "KeyUp & DirectionUp Email", Toast.LENGTH_SHORT
-                            )
-                            .show()
+//                        Toast
+//                            .makeText(
+//                                context, "KeyUp & DirectionUp Email", Toast.LENGTH_SHORT
+//                            )
+//                            .show()
                         false
                     }
                     else {

+ 35 - 51
app/src/main/java/com/vpn/fastestvpnservice/screensTV/HomeScreenTV.kt

@@ -1,17 +1,13 @@
 package com.vpn.fastestvpnservice.screensTV
 
 import android.content.Context
-import android.content.Intent
 import android.util.Log
-import android.widget.Toast
-import androidx.activity.compose.BackHandler
 import androidx.compose.foundation.BorderStroke
 import androidx.compose.foundation.Image
 import androidx.compose.foundation.background
 import androidx.compose.foundation.border
 import androidx.compose.foundation.clickable
 import androidx.compose.foundation.focusable
-import androidx.compose.foundation.gestures.detectTapGestures
 import androidx.compose.foundation.interaction.MutableInteractionSource
 import androidx.compose.foundation.layout.Arrangement
 import androidx.compose.foundation.layout.Box
@@ -59,7 +55,6 @@ import androidx.compose.ui.input.key.KeyEventType
 import androidx.compose.ui.input.key.key
 import androidx.compose.ui.input.key.onKeyEvent
 import androidx.compose.ui.input.key.type
-import androidx.compose.ui.input.pointer.pointerInput
 import androidx.compose.ui.layout.ContentScale
 import androidx.compose.ui.platform.LocalContext
 import androidx.compose.ui.res.colorResource
@@ -73,27 +68,16 @@ import androidx.lifecycle.viewmodel.compose.viewModel
 import androidx.navigation.NavHostController
 import com.vpn.fastestvpnservice.R
 import com.vpn.fastestvpnservice.beans.isDarkTheme
-import com.vpn.fastestvpnservice.beans.toChangeServer
-import com.vpn.fastestvpnservice.constants.AppEnum
 import com.vpn.fastestvpnservice.constants.smartConnect
 import com.vpn.fastestvpnservice.helpers.BasePreferenceHelper
-import com.vpn.fastestvpnservice.navigation.customNavigation
 import com.vpn.fastestvpnservice.navigation.isFirstItemPressed
 import com.vpn.fastestvpnservice.navigation.isHomeScreenPressed
-import com.vpn.fastestvpnservice.screens.bottomNavBarScreens.AddRowSelectServer
 import com.vpn.fastestvpnservice.screens.bottomNavBarScreens.AddText
 import com.vpn.fastestvpnservice.screens.bottomNavBarScreens.ColumnText
-import com.vpn.fastestvpnservice.screens.bottomNavBarScreens.blueBackground
-import com.vpn.fastestvpnservice.screens.bottomNavBarScreens.isServerDialog
-import com.vpn.fastestvpnservice.screens.bottomNavBarScreens.serverObj
-import com.vpn.fastestvpnservice.screens.bottomNavBarScreens.vpnConnectionsUtil
-import com.vpn.fastestvpnservice.sealedClass.BottomBarScreen
-import com.vpn.fastestvpnservice.sealedClass.Screen
 import com.vpn.fastestvpnservice.ui.theme.customTypography
 import com.vpn.fastestvpnservice.utils.Utils
 import com.vpn.fastestvpnservice.utils.isTablet
 import com.vpn.fastestvpnservice.viewmodels.HomeViewModel
-import com.vpn.fastestvpnservice.widgets.SimpleAppWidget
 import de.blinkt.openvpn.core.App
 
 @Composable
@@ -300,9 +284,9 @@ fun HomeTV(navHostController: NavHostController) {
 
                 IconButton(
                     onClick = {
-                              Toast.makeText(
-                                  context, "Connect onClick{}", Toast.LENGTH_SHORT
-                              ).show()
+//                              Toast.makeText(
+//                                  context, "Connect onClick{}", Toast.LENGTH_SHORT
+//                              ).show()
 //                        val connectedServer = basePreferenceHelper.getConnectedServer()
 //                        val serverObject = basePreferenceHelper.getServerObject()
 //                        Log.d(
@@ -360,17 +344,17 @@ fun HomeTV(navHostController: NavHostController) {
                             when (it.key) {
                                 Key.DirectionDown -> {
                                     Log.d("test_settings_keys", "DirectionDown")
-                                    Toast
-                                        .makeText(
-                                            context, "DirectionDown", Toast.LENGTH_SHORT
-                                        )
-                                        .show()
+//                                    Toast
+//                                        .makeText(
+//                                            context, "DirectionDown", Toast.LENGTH_SHORT
+//                                        )
+//                                        .show()
                                     if (it.type == KeyEventType.KeyDown) {
-                                        Toast
-                                            .makeText(
-                                                context, "KeyDown", Toast.LENGTH_SHORT
-                                            )
-                                            .show()
+//                                        Toast
+//                                            .makeText(
+//                                                context, "KeyDown", Toast.LENGTH_SHORT
+//                                            )
+//                                            .show()
                                         focusRequester2.requestFocus()
                                     }
                                     true
@@ -473,9 +457,9 @@ fun HomeTV(navHostController: NavHostController) {
                     }
                     Button(
                         onClick = {
-                                  Toast.makeText(
-                                      context, "Smart onClick{}", Toast.LENGTH_SHORT
-                                  ).show()
+//                                  Toast.makeText(
+//                                      context, "Smart onClick{}", Toast.LENGTH_SHORT
+//                                  ).show()
 //                            Log.d("test_button", "onClick Smart Connect ${smartServer?.server_name}")
 //                            basePreferenceHelper.setSmartServerObject(smartServer)
 //                            if (isConnect == App.CONNECTED) {
@@ -560,11 +544,11 @@ fun HomeTV(navHostController: NavHostController) {
                         .height(60.dp)
                         .onKeyEvent {
                                 if (it.type == KeyEventType.KeyDown && it.key == Key.DirectionDown) {
-                                    Toast
-                                        .makeText(
-                                            context, "KeyDown & DirectionDown", Toast.LENGTH_SHORT
-                                        )
-                                        .show()
+//                                    Toast
+//                                        .makeText(
+//                                            context, "KeyDown & DirectionDown", Toast.LENGTH_SHORT
+//                                        )
+//                                        .show()
                                     isFirstItemPressed.value = true
                                     true
                                 } else { false }
@@ -578,9 +562,9 @@ fun HomeTV(navHostController: NavHostController) {
                             indication = null,
                             interactionSource = remember { MutableInteractionSource() }
                         ) {
-                            Toast
-                                .makeText(context, "See All Pressed", Toast.LENGTH_SHORT)
-                                .show()
+//                            Toast
+//                                .makeText(context, "See All Pressed", Toast.LENGTH_SHORT)
+//                                .show()
                         }
                         .border(
                             border = BorderStroke(2.dp, color),
@@ -707,9 +691,9 @@ fun BoxScope.AddRowSmartTV(
                     .onKeyEvent {
                         when (it.key) {
                             Key.DirectionLeft -> {
-                                Toast.makeText(
-                                    context, "DirectionLeft Change", Toast.LENGTH_SHORT
-                                ).show()
+//                                Toast.makeText(
+//                                    context, "DirectionLeft Change", Toast.LENGTH_SHORT
+//                                ).show()
                                 true
                             }
                             else -> { false }
@@ -720,11 +704,11 @@ fun BoxScope.AddRowSmartTV(
                         isButtonFocused = it.isFocused
                     }
                     .clickable {
-                        Toast
-                            .makeText(
-                                context, "Change Pressed()", Toast.LENGTH_SHORT
-                            )
-                            .show()
+//                        Toast
+//                            .makeText(
+//                                context, "Change Pressed()", Toast.LENGTH_SHORT
+//                            )
+//                            .show()
                     }
                     .focusable()
                 ,
@@ -735,9 +719,9 @@ fun BoxScope.AddRowSmartTV(
                     fontSize = if (isTablet()) 20.sp else 14.sp
                 ),
                 onClick = {
-                    Toast.makeText(
-                        context, "Change Clicked()", Toast.LENGTH_SHORT
-                    ).show()
+//                    Toast.makeText(
+//                        context, "Change Clicked()", Toast.LENGTH_SHORT
+//                    ).show()
 //                    toChangeServer.value = true
 //                    navHostController.navigate(
 //                        Screen.ServerList.route

+ 26 - 21
app/src/main/java/com/vpn/fastestvpnservice/screensTV/SettingsScreenTV.kt

@@ -7,7 +7,6 @@ import android.os.Build
 import android.os.Bundle
 import android.os.Handler
 import android.util.Log
-import android.widget.Toast
 import androidx.activity.compose.BackHandler
 import androidx.compose.foundation.ExperimentalFoundationApi
 import androidx.compose.foundation.Image
@@ -76,7 +75,6 @@ import androidx.compose.ui.input.key.onKeyEvent
 import androidx.compose.ui.input.key.type
 import androidx.compose.ui.input.pointer.pointerInput
 import androidx.compose.ui.platform.LocalContext
-import androidx.compose.ui.platform.LocalFocusManager
 import androidx.compose.ui.platform.LocalView
 import androidx.compose.ui.res.colorResource
 import androidx.compose.ui.res.painterResource
@@ -97,6 +95,7 @@ import com.vpn.fastestvpnservice.customItems.ServerSpecificItem
 import com.vpn.fastestvpnservice.helpers.BasePreferenceHelper
 import com.vpn.fastestvpnservice.navigation.customNavigation
 import com.vpn.fastestvpnservice.navigation.isFirstItemPressed
+import com.vpn.fastestvpnservice.navigation.isSecondItemFocused
 import com.vpn.fastestvpnservice.navigation.isSecondItemPressed
 import com.vpn.fastestvpnservice.navigation.isSettingsScreenPressed
 import com.vpn.fastestvpnservice.screens.bottomNavBarScreens.AddTextSettings
@@ -130,10 +129,16 @@ fun SettingsTV(navHostController: NavHostController) {
     val navBackStackEntry = navHostController.currentBackStackEntryAsState()
 
     BackHandler {
-        Toast.makeText(
-            context, "BackHandler Settings TV", Toast.LENGTH_SHORT
-        ).show()
-//        customNavigation(navHostController, BottomBarScreen.Settings)
+//        Toast.makeText(
+//            context, "BackHandler Settings TV - ${isSecondItemFocused.value}", Toast.LENGTH_SHORT
+//        ).show()
+        if (isSecondItemFocused.value) {
+            navHostController.popBackStack()
+            isFirstItemPressed.value = true
+//            customNavigation(navHostController, BottomBarScreen.Home)
+        } else {
+            isSecondItemPressed.value = true
+        }
     }
 
     CompositionLocalProvider(
@@ -261,11 +266,11 @@ fun ColumnScope.AddRowSettingsTV(
             .onKeyEvent {
                 if (isLastRow) {
                     if (it.type == KeyEventType.KeyDown && it.key == Key.DirectionDown) {
-                        Toast
-                            .makeText(
-                                context, "KeyDown & DirectionDown Notify", Toast.LENGTH_SHORT
-                            )
-                            .show()
+//                        Toast
+//                            .makeText(
+//                                context, "KeyDown & DirectionDown Notify", Toast.LENGTH_SHORT
+//                            )
+//                            .show()
                         isSecondItemPressed.value = true
                     }
                     false
@@ -503,21 +508,21 @@ fun ColumnScope.AddRowSettingsColumnTV(
                 when (it.key) {
                     Key.DirectionDown -> {
                         Log.d("test_settings_keys", "DirectionDown")
-                        Toast
-                            .makeText(
-                                context, "DirectionDown", Toast.LENGTH_SHORT
-                            )
-                            .show()
+//                        Toast
+//                            .makeText(
+//                                context, "DirectionDown", Toast.LENGTH_SHORT
+//                            )
+//                            .show()
                         focusRequester2.requestFocus()
                         true
                     }
                     Key.DirectionLeft -> {
                         Log.d("test_settings_keys", "DirectionLeft")
-                        Toast
-                            .makeText(
-                                context, "DirectionLeft", Toast.LENGTH_SHORT
-                            )
-                            .show()
+//                        Toast
+//                            .makeText(
+//                                context, "DirectionLeft", Toast.LENGTH_SHORT
+//                            )
+//                            .show()
                         customNavigation(navHostController = navHostController, screen = BottomBarScreen.Settings)
                         true
                     }

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

@@ -1,27 +1,19 @@
 package com.vpn.fastestvpnservice.screensTV
 
-import android.app.Activity
 import androidx.compose.foundation.Image
 import androidx.compose.foundation.layout.Box
 import androidx.compose.foundation.layout.Row
-import androidx.compose.foundation.layout.WindowInsets
 import androidx.compose.foundation.layout.fillMaxSize
 import androidx.compose.foundation.layout.height
 import androidx.compose.foundation.layout.padding
-import androidx.compose.foundation.layout.systemBars
 import androidx.compose.foundation.layout.width
-import androidx.compose.foundation.layout.windowInsetsPadding
 import androidx.compose.runtime.Composable
-import androidx.compose.material3.Button
 import androidx.compose.runtime.LaunchedEffect
 import androidx.compose.ui.Alignment
 import androidx.compose.ui.Modifier
 import androidx.compose.ui.draw.paint
-import androidx.compose.ui.graphics.Color
-import androidx.compose.ui.graphics.toArgb
 import androidx.compose.ui.layout.ContentScale
 import androidx.compose.ui.platform.LocalContext
-import androidx.compose.ui.platform.LocalView
 import androidx.compose.ui.res.painterResource
 import androidx.compose.ui.unit.dp
 import androidx.navigation.NavHostController