Browse Source

remove toast

Khubaib 1 year ago
parent
commit
ffde6bcb68

+ 3 - 21
app/src/main/java/com/vpn/fastestvpnservice/customItems/CountryItem.kt

@@ -111,13 +111,7 @@ fun CountryItem(server: Server, category: String) {
                                         indication = null,
                                         interactionSource = remember { MutableInteractionSource() }
                                     ) {
-                                        Toast
-                                            .makeText(
-                                                context,
-                                                server.country + " " + server.ping,
-                                                Toast.LENGTH_SHORT
-                                            )
-                                            .show()
+
                                     }
                             ) {
                                 val icon = Utils.getDrawable(context, server.iso)
@@ -209,13 +203,7 @@ fun CountryItem(server: Server, category: String) {
                                     indication = null,
                                     interactionSource = remember { MutableInteractionSource() }
                                 ) {
-                                    Toast
-                                        .makeText(
-                                            context,
-                                            server.country + " " + server.ping,
-                                            Toast.LENGTH_SHORT
-                                        )
-                                        .show()
+
                                 }
                         ) {
                             val icon = Utils.getDrawable(context, server.iso)
@@ -341,13 +329,7 @@ fun ColumnScope.ExpandableRow(server: Server) {
                                 indication = null,
                                 interactionSource = remember { MutableInteractionSource() }
                             ) {
-                                Toast
-                                    .makeText(
-                                        context,
-                                        serverInfo.server_name + " " + serverInfo.ping,
-                                        Toast.LENGTH_SHORT
-                                    )
-                                    .show()
+
                             }
                     ) {
                         Text(text = serverInfo.server_name!!,

+ 3 - 21
app/src/main/java/com/vpn/fastestvpnservice/customItems/ServerItem.kt

@@ -91,13 +91,7 @@ fun ServerItem(server: Server) {
                     indication = null,
                     interactionSource = remember { MutableInteractionSource() }
                 ) {
-                    Toast
-                        .makeText(
-                            context,
-                            server.server_name,
-                            Toast.LENGTH_SHORT
-                        )
-                        .show()
+
                 }
         ) {
             var ping by remember { mutableIntStateOf(0) }
@@ -239,13 +233,7 @@ fun FavoriteServerItem(server: Server) {
                     indication = null,
                     interactionSource = remember { MutableInteractionSource() }
                 ) {
-                    Toast
-                        .makeText(
-                            context,
-                            server.server_name,
-                            Toast.LENGTH_SHORT
-                        )
-                        .show()
+
                 }
         ) {
             var ping by remember { mutableIntStateOf(0) }
@@ -378,13 +366,7 @@ fun ServerSearchItem(server: Server) {
                     indication = null,
                     interactionSource = remember { MutableInteractionSource() }
                 ) {
-                    Toast
-                        .makeText(
-                            context,
-                            server.server_name,
-                            Toast.LENGTH_SHORT
-                        )
-                        .show()
+
                 }
         ) {
             var ping by remember { mutableIntStateOf(0) }

+ 1 - 7
app/src/main/java/com/vpn/fastestvpnservice/customItems/SubscriptionDataItem.kt

@@ -67,13 +67,7 @@ fun SubscriptionDataItem(item: Features) {
                         MutableInteractionSource()
                     }
                 ) {
-                    Toast
-                        .makeText(
-                            context,
-                            item.title,
-                            Toast.LENGTH_SHORT
-                        )
-                        .show()
+
                 }
         ) {
             Icon(