From e0266d0efb840ccf485fbe44a245b5b376416b4a Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Thu, 13 Sep 2018 18:48:21 +0200 Subject: [PATCH] fix media preview in tablet mode --- .../java/eu/siacs/conversations/ui/ConversationFragment.java | 2 ++ .../siacs/conversations/ui/adapter/MediaPreviewAdapter.java | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/src/main/java/eu/siacs/conversations/ui/ConversationFragment.java b/src/main/java/eu/siacs/conversations/ui/ConversationFragment.java index 2190b61b5..4264ec152 100644 --- a/src/main/java/eu/siacs/conversations/ui/ConversationFragment.java +++ b/src/main/java/eu/siacs/conversations/ui/ConversationFragment.java @@ -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) { diff --git a/src/main/java/eu/siacs/conversations/ui/adapter/MediaPreviewAdapter.java b/src/main/java/eu/siacs/conversations/ui/adapter/MediaPreviewAdapter.java index e830b85d3..ce0960592 100644 --- a/src/main/java/eu/siacs/conversations/ui/adapter/MediaPreviewAdapter.java +++ b/src/main/java/eu/siacs/conversations/ui/adapter/MediaPreviewAdapter.java @@ -166,6 +166,10 @@ public class MediaPreviewAdapter extends RecyclerView.Adapter