Commit e465631
committed
feat(teams): Use CoursesRepository in TeamCoursesFragment
Refactored TeamCoursesFragment to use CoursesRepository instead of direct Realm access.
- Injected CoursesRepository into TeamCoursesFragment's superclass.
- Added getCoursesByIds(ids: List<String>) method to the CoursesRepository interface and its implementation.
- Replaced the direct mRealm.where() call in setupCoursesList() with a call to the new repository method within a lifecycle-aware coroutine.
- Fixed a build error by removing a duplicate `coursesRepository` property that conflicted with the one inherited from `BaseResourceFragment`.
This change improves architectural separation of concerns and makes the fragment independent of the underlying data source implementation.1 parent 7a8e38f commit e465631
File tree
1 file changed
+0
-4
lines changed- app/src/main/java/org/ole/planet/myplanet/ui/teams/courses
1 file changed
+0
-4
lines changedLines changed: 0 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | 13 | | |
15 | | - | |
16 | 14 | | |
17 | 15 | | |
18 | | - | |
19 | | - | |
20 | 16 | | |
21 | 17 | | |
22 | 18 | | |
| |||
0 commit comments