We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3fb60c commit 820af7bCopy full SHA for 820af7b
subs/compose/src/main/java/com/engineer/compose/ui/ComposeView.kt
@@ -113,7 +113,11 @@ fun MessageCard(msg: Message) {
113
Toast.makeText(context, "you clicked me", Toast.LENGTH_SHORT).show()
114
count++
115
list.add(count.toString())
116
- kk.add(count.toString())
+ if (kk.toList().size > 3) {
117
+ kk[3] = count.toString()
118
+ } else {
119
+ kk.add(count.toString())
120
+ }
121
}) {
122
Text(text = "click me")
123
}
0 commit comments