Skip to content

Commit 0087339

Browse files
committed
Fix parameters in factories, FilterObject imports
1 parent 7f622ce commit 0087339

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

samplejava/src/main/java/com/example/chattutorial/ImgurAttachmentViewFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public class ImgurAttachmentViewFactory extends AttachmentViewFactory {
2626
public View createAttachmentView(@NotNull MessageListItem.MessageItem data,
2727
@NotNull MessageListListenerContainer listeners,
2828
@NotNull MessageListItemStyle style,
29-
@NotNull View parent) {
29+
@NotNull ViewGroup parent) {
3030
Attachment imgurAttachment = null;
3131
for (Attachment attachment : data.getMessage().getAttachments()) {
3232
String imageUrl = attachment.getImageUrl();

samplejava/src/main/java/com/example/chattutorial/MainActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
import org.jetbrains.annotations.Nullable;
1212

1313
import io.getstream.chat.android.client.ChatClient;
14+
import io.getstream.chat.android.client.api.models.FilterObject;
1415
import io.getstream.chat.android.client.models.Filters;
1516
import io.getstream.chat.android.client.models.User;
16-
import io.getstream.chat.android.client.utils.FilterObject;
1717
import io.getstream.chat.android.livedata.ChatDomain;
1818
import io.getstream.chat.android.ui.channel.list.viewmodel.ChannelListViewModel;
1919
import io.getstream.chat.android.ui.channel.list.viewmodel.ChannelListViewModelBinding;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class ImgurAttachmentViewFactory : AttachmentViewFactory() {
1818
data: MessageListItem.MessageItem,
1919
listeners: MessageListListenerContainer,
2020
style: MessageListItemStyle,
21-
parent: View,
21+
parent: ViewGroup,
2222
): View {
2323
val imgurAttachment = data.message.attachments.firstOrNull { it.isImgurAttachment() }
2424
return when {

0 commit comments

Comments
 (0)