-
Notifications
You must be signed in to change notification settings - Fork 381
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
1166: Migration to Paging3 for MembersFragment #1221
base: develop
Are you sure you want to change the base?
Conversation
- Upon scroll MemberLoadingStateAdapter will show loading list or any error, with retry button to fetch further list. - list items are bind to UI now using databinding. See BindingUtils.kt - strings.xml have new additions. - pbMember progress bar removed from fragment_members.xml - yet to clean to codebase, and remove redundant methods.
…embersViewModel.kt - local package: Room db created - RemoteMediator added for fetching & storing data from remote to local room db. - solved null check errors due to change of 'id' field in User.kt is changed to non-null - compileSdk and targetSdk, Kotlin, paging library versions updated. Supports latest version of room - Room dependencies added - Dependencies.kt - solved errors caused due to change in UserDataManager.kt class parameters. - Injection.kt added for injecting UserDataManager.kt to dependent classes
- fixed the crash due to passing null data from MembersFragment.kt to MemberProfileActivity.kt
- removed unused method from UserDataManager.kt - removed unused code and imports from MembersViewModel.kt - changed items per page to 50 - fixed spotless isssues.
The existing filter feature on member list was not working, and after implementinig paging3 , it is found that there is a issue with sorting and filtering the list. Refer here : https://issuetracker.google.com/issues/175430431. I am trying work around for this filtering feature at this moment, which will solve this issue. |
- no functional change
@vj-codes @isabelcosta Two points I would like to raise: Please review this and this PR kindly.
Please share feedback on this |
@vj-codes A check is failing, however I am unable to understand what change to do. It's regarding collision of two kotlin-stdlib versions, but i removed the dependency since its deprecated. Still the same. |
Hi @isabelcosta @vj-codes Can you please review ? |
Description
Fixes #1166
Type of Change:
Room
andPaging 3
dependencies added.kotlin
to support room & paging 3.UserDataManager
to get paged data from room handled by new classUserRemoteMediator
.FilterActivity
removed as now filtering is done viaExtendedFloatingActionButton
onClick. See details here.BindingUtil
added for showing data on UI inlist_member_item.xml
../gradlew sA
.TAG
s were removed which had no use and warning came during commit.Code/Quality Assurance Only
How Has This Been Tested?
Checklist:
Code/Quality Assurance Only