diff --git a/app/src/main/java/awais/instagrabber/adapters/viewholder/directmessages/DirectItemMediaShareViewHolder.java b/app/src/main/java/awais/instagrabber/adapters/viewholder/directmessages/DirectItemMediaShareViewHolder.java
index 2ffae64a..78f0c8e2 100644
--- a/app/src/main/java/awais/instagrabber/adapters/viewholder/directmessages/DirectItemMediaShareViewHolder.java
+++ b/app/src/main/java/awais/instagrabber/adapters/viewholder/directmessages/DirectItemMediaShareViewHolder.java
@@ -65,7 +65,6 @@ public class DirectItemMediaShareViewHolder extends DirectItemViewHolder {
if (media == null) return;
itemView.post(() -> {
setupUser(media);
- setupTitle(media);
setupCaption(media);
});
final int index;
@@ -140,16 +139,6 @@ public class DirectItemMediaShareViewHolder extends DirectItemViewHolder {
}
}
- private void setupTitle(@NonNull final Media media) {
- final String title = media.getTitle();
- if (!TextUtils.isEmpty(title)) {
- binding.title.setVisibility(View.VISIBLE);
- binding.title.setText(title);
- } else {
- binding.title.setVisibility(View.GONE);
- }
- }
-
private void setupUser(@NonNull final Media media) {
final User user = media.getUser();
if (user != null) {
diff --git a/app/src/main/res/layout/layout_dm_media_share.xml b/app/src/main/res/layout/layout_dm_media_share.xml
index 6e4f74de..b59b7f17 100644
--- a/app/src/main/res/layout/layout_dm_media_share.xml
+++ b/app/src/main/res/layout/layout_dm_media_share.xml
@@ -76,26 +76,7 @@
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toTopOf="@id/title" />
-
-
+ app:layout_constraintTop_toTopOf="@id/caption" />
\ No newline at end of file