Skip to content

Commit f14a1de

Browse files
Merge pull request #226 from appdevforall/feat/ADFA-4777-clone-showcode-link
ADFA-4777: Clone Send — "Show code as text" as a quiet fallback link
2 parents 66dd7f4 + 60c6a3b commit f14a1de

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎controller/app/src/main/java/org/iiab/controller/redesign/CloneFragment.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup c
142142
showcode.setOnClickListener(x -> {
143143
codeExpanded = !codeExpanded;
144144
codeblock.setVisibility(codeExpanded ? View.VISIBLE : View.GONE);
145-
showcode.setText(codeExpanded ? "Show code as text ▴" : "Show code as text ▾");
145+
showcode.setText(codeExpanded ? "Hide code ▴" : "Scan didn't work? Show code as text ▾");
146146
});
147147
copyBtn.setOnClickListener(x -> {
148148
ClipboardManager cm = (ClipboardManager) requireContext().getSystemService(Context.CLIPBOARD_SERVICE);

‎controller/app/src/main/res/layout/fragment_k2go_clone.xml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@
4747
</LinearLayout>
4848

4949
<TextView android:id="@+id/k2go_clone_showcode" android:layout_width="match_parent" android:layout_height="wrap_content"
50-
android:layout_marginTop="14dp" android:padding="14dp" android:gravity="center" android:text="Show code as text ▾"
51-
android:background="@drawable/k2go_getmore_bg" android:textColor="@color/k2go_teal"
52-
android:textAppearance="?attr/textAppearanceBodyLarge" android:clickable="true" android:focusable="true" android:visibility="gone" />
50+
android:layout_marginTop="12dp" android:padding="8dp" android:gravity="center" android:text="Scan didn\'t work? Show code as text ▾"
51+
android:textColor="@color/k2go_teal"
52+
android:textAppearance="?attr/textAppearanceBodyMedium" android:clickable="true" android:focusable="true" android:visibility="gone" />
5353

5454
<LinearLayout android:id="@+id/k2go_clone_codeblock" android:layout_width="match_parent" android:layout_height="wrap_content"
5555
android:orientation="vertical" android:layout_marginTop="6dp" android:padding="14dp" android:background="@drawable/k2go_card_bg" android:visibility="gone">

0 commit comments

Comments
 (0)