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

[Android] Move ProgramFragment Parameters from Constructor to newInstance Function #325

Closed
PavloNetrebchuk opened this issue May 29, 2024 · 0 comments · Fixed by #328
Closed
Assignees

Comments

@PavloNetrebchuk
Copy link
Contributor

PavloNetrebchuk commented May 29, 2024

We need to refactor the ProgramFragment class to move its parameters from the constructor to a newInstance function. This change will enhance code readability, improve maintainability, and align with best practices for fragment creation in Android development.

From To
Screenshot 2024-05-29 at 16 26 56 Screenshot 2024-05-29 at 16 29 04

Additionally, it's crucial to modify the getProgramFragmentInstance function in AppRouter.kt.

Screenshot 2024-05-29 at 16 42 52
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 a pull request may close this issue.

3 participants