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
Refactored AdapterNews and NewsFragment to prevent ANRs caused by synchronous Realm queries on the main thread.
- Introduced `NewsItemData` DTO to decouple the adapter from Realm.
- Moved data fetching and processing to a background coroutine in `NewsFragment`.
- `AdapterNews` now uses `ListAdapter` with the `NewsItemData` DTO, removing all direct database access.
- Image paths are now pre-fetched in a single batch query, eliminating per-item lookups in `onBindViewHolder`.
0 commit comments