Commit 9b78d973 by 严久程

fix

parent 971b1fc0
...@@ -4,6 +4,7 @@ import android.content.Context ...@@ -4,6 +4,7 @@ import android.content.Context
import android.os.Handler import android.os.Handler
import android.os.Looper import android.os.Looper
import android.os.Message import android.os.Message
import android.text.TextUtils
import android.util.AttributeSet import android.util.AttributeSet
import android.view.View import android.view.View
import android.view.ViewGroup import android.view.ViewGroup
...@@ -197,7 +198,8 @@ class ImCommentBannerView : LinearLayout { ...@@ -197,7 +198,8 @@ class ImCommentBannerView : LinearLayout {
} }
} }
} }
else -> {} else -> {
}
} }
} }
} }
...@@ -206,11 +208,10 @@ class ImCommentBannerView : LinearLayout { ...@@ -206,11 +208,10 @@ class ImCommentBannerView : LinearLayout {
//获取经过加密的名字 : 徐** //获取经过加密的名字 : 徐**
private fun getName(name: String?): String { private fun getName(name: String?): String {
var nameBuffer = StringBuffer() var nameBuffer = StringBuffer()
name?.let { if (name != null && !TextUtils.isEmpty(name)) {
nameBuffer.append(name[0]) nameBuffer.append(name[0])
nameBuffer.append("**:")
} }
nameBuffer.append("**:")
return nameBuffer.toString() return nameBuffer.toString()
} }
......
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