You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: app/src/main/java/com/zaneschepke/wireguardautotunnel/ui/screens/tunnels/components/TunnelStatisticsRow.kt
+8-7Lines changed: 8 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -35,14 +35,15 @@ fun TunnelStatisticsRow(
35
35
val textColor =MaterialTheme.colorScheme.outline
36
36
37
37
// needs to be set as peer stats for duplicates return as a single set of stats
38
-
val peers by remember(tunnel) {
39
-
derivedStateOf {
40
-
TunnelConfig.configFromWgQuick(tunnel.wgQuick)
41
-
.peers
42
-
.map { it.publicKey.toBase64() }
43
-
.toSet()
38
+
val peers by
39
+
remember(tunnel) {
40
+
derivedStateOf {
41
+
TunnelConfig.configFromWgQuick(tunnel.wgQuick)
42
+
.peers
43
+
.map { it.publicKey.toBase64() }
44
+
.toSet()
45
+
}
44
46
}
45
-
}
46
47
47
48
var currentTimeMillis by remember { mutableLongStateOf(System.currentTimeMillis()) }
0 commit comments