Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dashboard: better strings (fixes #3683) #3684

Merged
merged 18 commits into from
Jul 2, 2024

Conversation

rlam20
Copy link
Contributor

@rlam20 rlam20 commented Jun 24, 2024

fixes #3683

@rlam20 rlam20 linked an issue Jun 24, 2024 that may be closed by this pull request
@rlam20 rlam20 marked this pull request as ready for review June 25, 2024 19:44
@Okuro3499
Copy link
Collaborator

which deprecation was this solving?

@rlam20
Copy link
Contributor Author

rlam20 commented Jun 26, 2024

I apologize I should have renamed the issue. This was for clearing up the warnings. @Okuro3499

@Okuro3499
Copy link
Collaborator

@rlam20 you could add that warning to the issue description

@@ -80,6 +81,7 @@ class DashboardActivity : DashboardElementActivity(), OnHomeItemClickListener, N
super.attachBaseContext(LocaleHelper.onAttach(base))
}

@SuppressLint("SetTextI18n")
Copy link
Collaborator

Choose a reason for hiding this comment

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

android studio give a suggestion on a better way to handle this instead of suppressing String literal in setText can not be translated. Use Android resources instead

@rlam20 rlam20 requested a review from Okuro3499 June 28, 2024 16:20
@dogi dogi added the review label Jul 1, 2024
@dogi dogi requested a review from strawberrybread July 1, 2024 17:36
activityDashboardBinding.appBarBell.appTitleName.text = "$name's Planet"
activityDashboardBinding.appBarBell.appTitleName.text = name + getString(R.string.planet)
Copy link
Collaborator

Choose a reason for hiding this comment

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

  1. this changes how the text appears
    current on master Gideon's planet
    on this branch Gideon planet

  2. warning is still not resolved Follow this link on how to resolve it solution link

Screenshot 2024-07-01 at 20 43 06
  1. default and lite don't have the same changes
  2. we have some conflicts

@rlam20 rlam20 requested a review from Okuro3499 July 1, 2024 19:58
@Okuro3499 Okuro3499 removed the WIP label Jul 2, 2024
@dogi dogi changed the title fix warnings and unused imports (fixes #3683) dashboard: better strings (fixes #3683) Jul 2, 2024
@dogi dogi merged commit 1f5ed0e into master Jul 2, 2024
2 checks passed
@Okuro3499 Okuro3499 deleted the 3683-deprecations-in-dashboardactivitykt branch July 9, 2024 09:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

warnings in DashboardActivity.kt
5 participants