mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2024-12-27 19:38:22 +01:00
Show urls in ShareLinkBottomSheetFragment.
This commit is contained in:
parent
7d8e32320f
commit
8b8a9073dd
@ -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:
|
||||
|
@ -10,6 +10,20 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/post_link_text_view_share_link_bottom_sheet_fragment"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical"
|
||||
android:paddingTop="16dp"
|
||||
android:paddingBottom="16dp"
|
||||
android:paddingStart="32dp"
|
||||
android:paddingEnd="32dp"
|
||||
android:textColor="?attr/secondaryTextColor"
|
||||
android:textSize="?attr/font_12"
|
||||
android:fontFamily="?attr/font_family"
|
||||
android:drawablePadding="48dp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/share_post_link_text_view_share_link_bottom_sheet_fragment"
|
||||
android:layout_width="match_parent"
|
||||
@ -48,6 +62,21 @@
|
||||
android:focusable="true"
|
||||
android:background="?attr/selectableItemBackground" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/media_link_text_view_share_link_bottom_sheet_fragment"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical"
|
||||
android:paddingTop="16dp"
|
||||
android:paddingBottom="16dp"
|
||||
android:paddingStart="32dp"
|
||||
android:paddingEnd="32dp"
|
||||
android:textColor="?attr/secondaryTextColor"
|
||||
android:textSize="?attr/font_12"
|
||||
android:fontFamily="?attr/font_family"
|
||||
android:drawablePadding="48dp"
|
||||
android:visibility="gone" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/share_media_link_text_view_share_link_bottom_sheet_fragment"
|
||||
android:layout_width="match_parent"
|
||||
|
Loading…
Reference in New Issue
Block a user