Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
2dust committed Sep 23, 2024
1 parent dbe2684 commit 0501de1
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,8 @@ class MainRecyclerAdapter(val activity: MainActivity) : RecyclerView.Adapter<Mai
}

// 替换服务器地址的'.'之后的内容为'***',例如将'1.23.45.67'替换为'1.23.45.***'
val parts = profile.server?.split('.')
val modifiedServer = parts?.dropLast(1)?.joinToString('.') + ".***"
val strState = "${modifiedServer} : ${profile.serverPort}"
val modifiedServer = profile.server?.split('.')?.dropLast(1)?.joinToString(".", postfix = ".***")
val strState = "$modifiedServer : ${profile.serverPort}"


holder.itemMainBinding.tvStatistics.text = strState
Expand Down

0 comments on commit 0501de1

Please sign in to comment.