Compare commits

..

2 Commits

Author SHA1 Message Date
Sylvia van Os
1a474e9d22 Move info text dialog away from deprecated Linkify.ALL 2026-01-18 22:38:44 +01:00
Sylvia van Os
cbb2453f6b Detect links in card ID in card ID popup 2026-01-18 22:37:56 +01:00

View File

@@ -406,7 +406,7 @@ public class LoyaltyCardViewActivity extends CatimaAppCompatActivity implements
dialogContentPadding,
0
);
infoTextview.setAutoLinkMask(Linkify.ALL);
infoTextview.setAutoLinkMask(Linkify.EMAIL_ADDRESSES | Linkify.PHONE_NUMBERS | Linkify.WEB_URLS);
infoTextview.setTextIsSelectable(true);
SpannableStringBuilder infoText = new SpannableStringBuilder();
@@ -701,6 +701,7 @@ public class LoyaltyCardViewActivity extends CatimaAppCompatActivity implements
}
TextView cardIdView = new TextView(LoyaltyCardViewActivity.this);
cardIdView.setAutoLinkMask(Linkify.EMAIL_ADDRESSES | Linkify.PHONE_NUMBERS | Linkify.WEB_URLS);
cardIdView.setText(loyaltyCard.cardId);
cardIdView.setTextIsSelectable(true);
int contentPadding = getResources().getDimensionPixelSize(R.dimen.alert_dialog_content_padding);