Commit 3a863c64 authored by wanglei's avatar wanglei

...

parent b87f575f
......@@ -31,7 +31,10 @@ public class ReportUtils {
result.append("&").append(entry.getKey()).append("=").append(entry.getValue());
}
if (result.length() > 0) {
conn.getOutputStream().write(result.substring(1).getBytes());
try {
conn.getOutputStream().write(result.substring(1).getBytes());
} catch (Exception e) {
}
} else {
// conn.getOutputStream().write(result.substring(0).getBytes());
}
......
......@@ -20,7 +20,9 @@ class ViewingAdapter(
override fun onBindViewHolder(holder: ViewingViewHolder, position: Int, item: ViewingBean?) {
item ?: return
val binding = ItemViewingBinding.bind(holder.itemView)
binding.tvNameLetters.text = item.nickname.substring(0, 1)
kotlin.runCatching {
binding.tvNameLetters.text = item.nickname.substring(0, 1)
}
binding.tvNameCode.text = item.localNickName ?: item.nickname
when (item.locatDate?.power) {
in 0..20 -> {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment