Skip to content

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

@PavloNetrebchuk

Description

@PavloNetrebchuk

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions