Skip to content

Commit fb97611

Browse files
author
Carter Hudson
committed
use kotlin version of subscribefor that is lifecycle sensitive
1 parent 36ea816 commit fb97611

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

samplekotlin/src/main/java/com/example/chattutorial/ChannelActivity4.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class ChannelActivity4 : AppCompatActivity(R.layout.activity_channel_4) {
8787
.channel(cid)
8888
.subscribeFor(
8989
this,
90-
TypingStartEvent::class.java, TypingStopEvent::class.java
90+
TypingStartEvent::class, TypingStopEvent::class
9191
) { event ->
9292
when (event) {
9393
is TypingStartEvent -> currentlyTyping.add(event.user.name)

0 commit comments

Comments
 (0)