We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5fef5a3 commit e24dd3bCopy full SHA for e24dd3b
app/src/main/kotlin/com/neko/v2ray/ui/MainRecyclerAdapter.kt
@@ -84,7 +84,9 @@ class MainRecyclerAdapter(val activity: MainActivity) : RecyclerView.Adapter<Mai
84
}
85
86
87
- val strState = "${profile.server?.dropLast(3)}*** : ${profile.serverPort}"
+ // 替换服务器地址的'.'之后的内容为'***',例如将'1.23.45.67'替换为'1.23.45.***'
88
+ val modifiedServer = profile.server?.split('.')?.dropLast(1)?.joinToString(".", postfix = ".***")
89
+ val strState = "$modifiedServer : ${profile.serverPort}"
90
91
holder.itemMainBinding.tvStatistics.text = strState
92
0 commit comments