diff options
author | Docile-Alligator <25734209+Docile-Alligator@users.noreply.github.com> | 2022-08-15 11:11:17 +0000 |
---|---|---|
committer | Docile-Alligator <25734209+Docile-Alligator@users.noreply.github.com> | 2022-08-15 11:11:17 +0000 |
commit | 8b8a9073ddf2d93a58352eace6383110d8758926 (patch) | |
tree | 560baf8b756dbd27a06eec6502e1a57a7b3c95fa /app/src/main/java | |
parent | 7d8e32320f867504e28429ede1aec419e10c3db2 (diff) | |
download | infinity-for-reddit-8b8a9073ddf2d93a58352eace6383110d8758926.tar infinity-for-reddit-8b8a9073ddf2d93a58352eace6383110d8758926.tar.gz infinity-for-reddit-8b8a9073ddf2d93a58352eace6383110d8758926.tar.bz2 infinity-for-reddit-8b8a9073ddf2d93a58352eace6383110d8758926.tar.lz infinity-for-reddit-8b8a9073ddf2d93a58352eace6383110d8758926.tar.xz infinity-for-reddit-8b8a9073ddf2d93a58352eace6383110d8758926.tar.zst infinity-for-reddit-8b8a9073ddf2d93a58352eace6383110d8758926.zip |
Show urls in ShareLinkBottomSheetFragment.
Diffstat (limited to 'app/src/main/java')
-rw-r--r-- | app/src/main/java/ml/docilealligator/infinityforreddit/bottomsheetfragments/ShareLinkBottomSheetFragment.java | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/bottomsheetfragments/ShareLinkBottomSheetFragment.java b/app/src/main/java/ml/docilealligator/infinityforreddit/bottomsheetfragments/ShareLinkBottomSheetFragment.java index d6385527..1d69854f 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/bottomsheetfragments/ShareLinkBottomSheetFragment.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/bottomsheetfragments/ShareLinkBottomSheetFragment.java @@ -32,12 +32,16 @@ public class ShareLinkBottomSheetFragment extends LandscapeExpandedRoundedBottom public static final String EXTRA_MEDIA_LINK = "EML"; public static final String EXTRA_MEDIA_TYPE = "EMT"; + @BindView(R.id.post_link_text_view_share_link_bottom_sheet_fragment) + TextView postLinkTextView; @BindView(R.id.share_post_link_text_view_share_link_bottom_sheet_fragment) TextView sharePostLinkTextView; - @BindView(R.id.share_media_link_text_view_share_link_bottom_sheet_fragment) - TextView shareMediaLinkTextView; @BindView(R.id.copy_post_link_text_view_share_link_bottom_sheet_fragment) TextView copyPostLinkTextView; + @BindView(R.id.media_link_text_view_share_link_bottom_sheet_fragment) + TextView mediaLinkTextView; + @BindView(R.id.share_media_link_text_view_share_link_bottom_sheet_fragment) + TextView shareMediaLinkTextView; @BindView(R.id.copy_media_link_text_view_share_link_bottom_sheet_fragment) TextView copyMediaLinkTextView; @@ -59,10 +63,15 @@ public class ShareLinkBottomSheetFragment extends LandscapeExpandedRoundedBottom String postLink = getArguments().getString(EXTRA_POST_LINK); String mediaLink = getArguments().containsKey(EXTRA_MEDIA_LINK) ? getArguments().getString(EXTRA_MEDIA_LINK) : null; + postLinkTextView.setText(postLink); + if (mediaLink != null) { + mediaLinkTextView.setVisibility(View.VISIBLE); shareMediaLinkTextView.setVisibility(View.VISIBLE); copyMediaLinkTextView.setVisibility(View.VISIBLE); + mediaLinkTextView.setText(mediaLink); + int mediaType = getArguments().getInt(EXTRA_MEDIA_TYPE); switch (mediaType) { case Post.IMAGE_TYPE: |