fix: review rework
This commit is contained in:
parent
f53d27bd53
commit
114be6fe5a
7 changed files with 326 additions and 30 deletions
|
@ -12,13 +12,14 @@ import ani.dantotsu.getThemeColor
|
|||
|
||||
class CircleView(context: Context, attrs: AttributeSet?) : View(context, attrs) {
|
||||
private var parts: Int = 3
|
||||
private var gapAngle: Float = 9f
|
||||
private var gapAngle: Float = 12f
|
||||
private val path = Path()
|
||||
private var isUser = false
|
||||
private var booleanList = listOf<Boolean>()
|
||||
private val paint: Paint = Paint(Paint.ANTI_ALIAS_FLAG).apply {
|
||||
style = Paint.Style.STROKE
|
||||
strokeWidth = 6f
|
||||
strokeCap = Paint.Cap.ROUND
|
||||
}
|
||||
|
||||
@SuppressLint("DrawAllocation")
|
||||
|
|
|
@ -462,7 +462,7 @@ class Stories @JvmOverloads constructor(
|
|||
binding.activityLike.setColorFilter(if (story.isLiked == true) likeColor else notLikeColor)
|
||||
binding.replyCount.text = story.replyCount.toString()
|
||||
binding.activityLikeCount.text = story.likeCount.toString()
|
||||
binding.activityLike.setColorFilter(ContextCompat.getColor(context, R.color.bg_opp))
|
||||
binding.activityReplies.setColorFilter(ContextCompat.getColor(context, R.color.bg_opp))
|
||||
binding.activityLikeContainer.setOnClickListener {
|
||||
like()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue