-
Notifications
You must be signed in to change notification settings - Fork 334
refactor: Replace listView with recyclerView for Discussion Screen #1821
Conversation
- Replace listView with recyclerView on CourseDiscussionTopicsFragment, CourseDiscussionPostsThreadFragment and CourseDiscussionPostsSearchFragment - Update BaseListAdapters with RecyclerView Adapters - Optimise Code and usage including Java to kotlin conversion - Add Extensions methods for multiple Views fix: LEARNER-9578
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## app_nav #1821 +/- ##
============================================
- Coverage 1.09% 1.09% -0.01%
Complexity 137 137
============================================
Files 536 536
Lines 25819 25862 +43
Branches 3300 3296 -4
============================================
Hits 284 284
- Misses 25508 25551 +43
Partials 27 27
☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because we are showing Lists in all cases, please use the ListAdapter
as we did in CourseHomeAdapter
and MyCoursesListAdapter
.
OpenEdXMobile/src/main/java/org/edx/mobile/extenstion/ImageViewExt.kt
Outdated
Show resolved
Hide resolved
OpenEdXMobile/src/main/java/org/edx/mobile/view/CourseDiscussionPostsThreadFragment.java
Outdated
Show resolved
Hide resolved
OpenEdXMobile/src/main/java/org/edx/mobile/view/CourseDiscussionPostsThreadFragment.java
Outdated
Show resolved
Hide resolved
OpenEdXMobile/src/main/java/org/edx/mobile/view/CourseDiscussionTopicsFragment.java
Outdated
Show resolved
Hide resolved
OpenEdXMobile/src/main/java/org/edx/mobile/view/CourseDiscussionTopicsFragment.java
Outdated
Show resolved
Hide resolved
OpenEdXMobile/src/main/java/org/edx/mobile/view/CourseDiscussionTopicsFragment.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor nits
OpenEdXMobile/src/main/java/org/edx/mobile/model/discussion/DiscussionThread.kt
Show resolved
Hide resolved
OpenEdXMobile/src/main/java/org/edx/mobile/view/CourseDiscussionPostsThreadFragment.java
Outdated
Show resolved
Hide resolved
OpenEdXMobile/src/main/java/org/edx/mobile/view/adapters/InfiniteScrollUtils.java
Outdated
Show resolved
Hide resolved
OpenEdXMobile/src/main/java/org/edx/mobile/view/adapters/DiscussionTopicsAdapter.kt
Outdated
Show resolved
Hide resolved
OpenEdXMobile/src/main/java/org/edx/mobile/view/adapters/DiscussionTopicsAdapter.kt
Show resolved
Hide resolved
OpenEdXMobile/src/main/java/org/edx/mobile/view/adapters/DiscussionTopicsAdapter.kt
Show resolved
Hide resolved
OpenEdXMobile/src/main/java/org/edx/mobile/view/adapters/DiscussionTopicsAdapter.kt
Outdated
Show resolved
Hide resolved
OpenEdXMobile/src/main/java/org/edx/mobile/interfaces/ItemsComparator.kt
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor nits.
In the meantime, I will perform a manual review to check for any discrepancies.
OpenEdXMobile/src/main/java/org/edx/mobile/view/CourseDiscussionPostsBaseFragment.java
Outdated
Show resolved
Hide resolved
OpenEdXMobile/src/main/java/org/edx/mobile/view/CourseDiscussionPostsThreadFragment.java
Outdated
Show resolved
Hide resolved
OpenEdXMobile/src/main/java/org/edx/mobile/view/adapters/DiscussionPostsAdapter.kt
Outdated
Show resolved
Hide resolved
OpenEdXMobile/src/main/java/org/edx/mobile/view/adapters/DiscussionPostsAdapter.kt
Outdated
Show resolved
Hide resolved
OpenEdXMobile/src/main/java/org/edx/mobile/view/adapters/DiscussionPostsAdapter.kt
Outdated
Show resolved
Hide resolved
OpenEdXMobile/src/main/java/org/edx/mobile/view/adapters/DiscussionPostsAdapter.kt
Outdated
Show resolved
Hide resolved
OpenEdXMobile/src/main/java/org/edx/mobile/view/adapters/DiscussionPostsAdapter.kt
Outdated
Show resolved
Hide resolved
OpenEdXMobile/src/main/java/org/edx/mobile/view/adapters/DiscussionTopicsAdapter.kt
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🏎️
Description
LEARNER-9578