aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/pixart
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2018-09-23 20:00:37 +0200
committerChristian Schneppe <christian@pix-art.de>2018-09-23 20:00:37 +0200
commit7e5b0a49e809130b018a5f33d26b8efa28304d6c (patch)
tree456d221bd351426e2248b249f7b6d88cd3c8454d /src/main/java/de/pixart
parentf873cd2b5f9ea6fdf76bfe6e5b283543ac3d97d7 (diff)
fix media preview in tablet mode
Diffstat (limited to 'src/main/java/de/pixart')
-rw-r--r--src/main/java/de/pixart/messenger/ui/ConversationFragment.java2
-rw-r--r--src/main/java/de/pixart/messenger/ui/adapter/MediaPreviewAdapter.java5
2 files changed, 7 insertions, 0 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/ConversationFragment.java b/src/main/java/de/pixart/messenger/ui/ConversationFragment.java
index 5f66c4200..0da5cf69c 100644
--- a/src/main/java/de/pixart/messenger/ui/ConversationFragment.java
+++ b/src/main/java/de/pixart/messenger/ui/ConversationFragment.java
@@ -2131,6 +2131,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/de/pixart/messenger/ui/adapter/MediaPreviewAdapter.java b/src/main/java/de/pixart/messenger/ui/adapter/MediaPreviewAdapter.java
index 3d9bce508..9192c6555 100644
--- a/src/main/java/de/pixart/messenger/ui/adapter/MediaPreviewAdapter.java
+++ b/src/main/java/de/pixart/messenger/ui/adapter/MediaPreviewAdapter.java
@@ -179,6 +179,11 @@ public class MediaPreviewAdapter extends RecyclerView.Adapter<MediaPreviewAdapte
}
}
+ public void clearPreviews() {
+ this.mediaPreviews.clear();
+ }
+
+
class MediaPreviewViewHolder extends RecyclerView.ViewHolder {
private final MediaPreviewBinding binding;