File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
src/main/java/com/example/chattutorial Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -30,10 +30,11 @@ android {
3030
3131dependencies {
3232 // Add new dependencies
33- implementation " androidx.lifecycle:lifecycle-livedata-ktx:2.4.1"
34-
3533 implementation " io.getstream:stream-chat-android-ui-components:5.2.0"
3634 implementation " com.google.android.material:material:1.6.0"
3735 implementation " androidx.activity:activity-ktx:1.4.0"
3836 implementation " io.coil-kt:coil:1.4.0"
37+
38+ // We use the ktx dependency for transforming StateFlow into LiveData
39+ implementation " androidx.lifecycle:lifecycle-livedata-ktx:2.4.1"
3940}
Original file line number Diff line number Diff line change @@ -143,6 +143,8 @@ public void handleOnBackPressed() {
143143 });
144144 }
145145
146+ // Helper method that transforms typing updates into a string
147+ // containing typing member's names
146148 @ NonNull
147149 private String joinTypingUpdatesToUserNames (@ NonNull TypingEvent typingEvent ) {
148150 StringBuilder joinedString = new StringBuilder ();
You can’t perform that action at this time.
0 commit comments