From 37663ced3069a374d3978da4a11954dac9a0732a Mon Sep 17 00:00:00 2001 From: Austin Huang Date: Mon, 28 Jun 2021 17:04:20 -0400 Subject: [PATCH] make media shares look better --- .../DirectItemMediaShareViewHolder.java | 11 ---------- .../main/res/layout/layout_dm_media_share.xml | 22 +------------------ 2 files changed, 1 insertion(+), 32 deletions(-) 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