-
Notifications
You must be signed in to change notification settings - Fork 2
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
Fix/timer/extract strings #331
Conversation
- Add string resources for TimerScreen including title, start text, useful tip, and button labels (START, RESET, STOP). - Adapt TimerScreen to use the new string resources.
…re being used. Also refactor `displayed_text_start` into `timer_displayed_text_start` for better consistency.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I verified and the text in timer screen is still correct.
LGMT.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM ! Just remove unused TimerScreen
tags in app/src/main/java/com/android/periodpals/resources/C.kt
Quality Gate passedIssues Measures |
Timer texts in
string.xml
Description
This PR introduces string resources for the TimerScreen to improve the readability and maintainability of the app. It closes issue #329 (and part of #328). The strings include a title, instructional text, useful tips, and labels for buttons (START, RESET, STOP). This update also adapts the TimerScreen to use the newly added string resources.
Changes
TimerScreen
, including the title, instructions, useful tips, and button labels (START, RESET, STOP).strings.xml
.Files
Added
Modified
TimerScreen.kt
(updated to use string resources fromstrings.xml
)TimerScreenTest.kt
(updated the existing tests)res/values/strings.xml
(new strings added)Removed
Dependencies Added
Testing
The TimerScreen has been updated to ensure the correct string resources are being used.