Khubaib il y a 1 an
Parent
commit
4fa7f8b526

+ 3 - 3
app/src/main/java/com/vpn/fastestvpnservice/screens/bottomNavBarScreens/HomeScreen.kt

@@ -257,7 +257,7 @@ fun Home(navHostController: NavHostController, activity: ComponentActivity) {
     }
     var server: Server = Server()
     val vpnConnectionsUtil = VPNConnectionsUtil(context, activity, homeViewModel)
-    val wg = VPNConnectionsUtil(context, activity, homeViewModel)
+//    val wg = VPNConnectionsUtil(context, activity, homeViewModel)
     homeViewModel1 = homeViewModel
 
 
@@ -400,14 +400,14 @@ fun Home(navHostController: NavHostController, activity: ComponentActivity) {
         if (isServerDialog.value) {
             ShowServerDialog(
                 basePreferenceHelper,
-                wg
+                vpnConnectionsUtil
             )
         }
 
         if (isProtocolDialog.value) {
             ShowProtocolDialog(
                 basePreferenceHelper,
-                wg
+                vpnConnectionsUtil
             )
         }