Skip to content

replaced the deprecated clickable text#1962

Merged
reconman merged 1 commit intomasterfrom
update-onboarding
May 10, 2025
Merged

replaced the deprecated clickable text#1962
reconman merged 1 commit intomasterfrom
update-onboarding

Conversation

@ArthurKun21
Copy link
Copy Markdown
Collaborator

@ArthurKun21 ArthurKun21 commented Feb 1, 2025

replaced the deprecated clickable text

Pull Request Type

  • Bugfix
  • Feature Implementation
  • Documentation
  • Other

Related issue

Description

Replaced the deprecated clickable text in on-boarding with buildannotatedstring with linkannotation

Screenshots

image

image

Testing

Additional context

@github-actions
Copy link
Copy Markdown

github-actions bot commented Feb 1, 2025

Build 182

Download the latest APK for testing here

Note

You need a GitHub account to download the APK.

This URL is valid as long as the artifact has not expired yet.

@ArthurKun21 ArthurKun21 closed this Mar 9, 2025
@ArthurKun21 ArthurKun21 deleted the update-onboarding branch March 9, 2025 10:09
@ArthurKun21 ArthurKun21 restored the update-onboarding branch May 8, 2025 22:27
@ArthurKun21 ArthurKun21 reopened this May 8, 2025
@ArthurKun21 ArthurKun21 force-pushed the update-onboarding branch from 27ed9a1 to a60855c Compare May 8, 2025 22:27
@ArthurKun21 ArthurKun21 requested a review from Copilot May 8, 2025 22:56
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes a bug by replacing the deprecated clickable text implementation in the onboarding screens with a buildAnnotatedString-based approach.

  • Replaces hardcoded URL strings in localized resource files with a placeholder to allow dynamic URL injection.
  • Removes the deprecated HighlightedText component and updates OnboardingItems.kt to use a new annotated string approach.
  • Updates multiple localization files to support the new URL placeholder.

Reviewed Changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
app/src/main/res/values/localized.xml Updates the URL reference to use a placeholder (%s)
app/src/main/res/values-vi/localized.xml Same as above, for Vietnamese localization
app/src/main/res/values-ko/localized.xml Same as above, for Korean localization
app/src/main/res/values-ja/localized.xml Same as above, for Japanese localization
app/src/main/res/values-b+zh+TW/localized.xml Same as above, for Traditional Chinese localization
app/src/main/res/values-b+zh+CN/localized.xml Same as above, for Simplified Chinese localization
app/src/main/java/io/github/fate_grand_automata/ui/onboarding/OnboardingItems.kt Replaces deprecated clickable text with a new buildAnnotatedString approach
app/src/main/java/io/github/fate_grand_automata/ui/onboarding/HighlightedText.kt Removes the no longer used HighlightedText component

@reconman reconman force-pushed the update-onboarding branch from a60855c to c529925 Compare May 10, 2025 22:09
@reconman reconman merged commit f231816 into master May 10, 2025
1 check failed
@reconman reconman deleted the update-onboarding branch May 10, 2025 22:10
wowuz pushed a commit to wowuz/FGA that referenced this pull request May 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants