Skip to content

Commit

Permalink
make checkbox text a real label
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyScherzinger committed Jun 23, 2018
1 parent f423fb9 commit 31099ee
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ private void showSendLinkTo() {
}
}

@OnClick({R.id.share_link_label, R.id.share_link_copy_icon})
@OnClick({R.id.share_link_copy_icon})
public void copyLinkToClipboard() {
if (file.isSharedViaLink()) {
if (TextUtils.isEmpty(file.getPublicLink())) {
Expand Down
20 changes: 5 additions & 15 deletions src/main/res/layout/file_details_sharing_fragment.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,31 +54,21 @@
android:id="@+id/share_by_link"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"/>

<TextView
android:id="@+id/share_link_label"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="start|center"
android:textColor="@color/black"
android:textSize="16sp"
android:paddingTop="@dimen/standard_half_padding"
android:paddingBottom="@dimen/standard_half_padding"
android:text="@string/share_via_link_section_title" />
android:layout_gravity="center_vertical"
android:text="@string/share_via_link_section_title"/>

<ImageView
android:id="@+id/share_link_copy_icon"
android:layout_width="0dp"
android:layout_height="40dp"
android:layout_height="32dp"
android:paddingEnd="@dimen/standard_eighth_margin"
android:paddingLeft="@dimen/standard_half_margin"
android:paddingRight="@dimen/standard_eighth_margin"
android:paddingStart="@dimen/standard_half_margin"
android:paddingTop="@dimen/standard_half_margin"
android:paddingTop="@dimen/standard_quarter_margin"
android:layout_weight="1"
android:contentDescription="@string/copy_link"
android:paddingBottom="@dimen/standard_half_padding"
android:paddingBottom="@dimen/standard_quarter_margin"
android:scaleType="fitStart"
android:src="@drawable/ic_content_copy"
android:layout_gravity="start|center"/>
Expand Down

0 comments on commit 31099ee

Please sign in to comment.