You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor: Optimize AdapterTask to use UserRepository
- Injected `UserRepository` into `AdapterTask` to handle user data fetching.
- Removed direct `Realm` instance calls from `showAssignee` to prevent per-item database queries.
- Updated `TeamTaskFragment` to use the inherited `userRepository` and pass it to the adapter.
- Fixed a compilation error caused by a duplicate `UserRepository` injection.
This change improves RecyclerView performance by centralizing data access and reducing synchronous I/O on the main thread.
0 commit comments