fix media preview in tablet mode
This commit is contained in:
parent
724f86f054
commit
e0266d0efb
|
@ -1865,6 +1865,8 @@ public class ConversationFragment extends XmppFragment implements EditMessage.Ke
|
|||
}
|
||||
updateChatState(this.conversation, msg);
|
||||
messageListAdapter.stopAudioPlayer();
|
||||
mediaPreviewAdapter.clearPreviews();
|
||||
toggleInputMethod();
|
||||
}
|
||||
|
||||
public void reInit(Conversation conversation, Bundle extras) {
|
||||
|
|
|
@ -166,6 +166,10 @@ public class MediaPreviewAdapter extends RecyclerView.Adapter<MediaPreviewAdapte
|
|||
return mediaPreviews;
|
||||
}
|
||||
|
||||
public void clearPreviews() {
|
||||
this.mediaPreviews.clear();
|
||||
}
|
||||
|
||||
class MediaPreviewViewHolder extends RecyclerView.ViewHolder {
|
||||
|
||||
private final MediaPreviewBinding binding;
|
||||
|
|
Loading…
Reference in a new issue