Skip to content
This repository has been archived by the owner on Jan 31, 2024. It is now read-only.

Jwen/fix profile #369

Merged
merged 7 commits into from
Jun 8, 2022
Merged

Jwen/fix profile #369

merged 7 commits into from
Jun 8, 2022

Conversation

jiabaow
Copy link
Collaborator

@jiabaow jiabaow commented Jun 8, 2022

No description provided.

setHasFixedSize(true)
adapter = followings?.let { ProfileFollowingAdapter(it, dataGetter, imageGetter, authenticator,this@MyProfileFragment) }
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar blocks of code found in 2 locations. Consider refactoring.

@@ -85,13 +85,13 @@ class PublicProfileActivity : AppCompatActivity(), OnItemClickListener, ProfileI
override fun setupRecycleViewForFriends() {
findViewById<RecyclerView>(R.id.profile_followingList).apply {
layoutManager = LinearLayoutManager(context)
adapter = followings?.let { ProfileFollowingAdapter(it, dataGetter, authenticator,this@PublicProfileActivity) }
adapter = followings?.let { ProfileFollowingAdapter(it, dataGetter, imageGetter, authenticator,this@PublicProfileActivity) }
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar blocks of code found in 2 locations. Consider refactoring.

@jiabaow jiabaow marked this pull request as ready for review June 8, 2022 12:46
Copy link
Owner

@MaximeZmt MaximeZmt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Collaborator

@zwierski zwierski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@codeclimate
Copy link

codeclimate bot commented Jun 8, 2022

Code Climate has analyzed commit d63e9e9 and detected 2 issues on this pull request.

Here's the issue category breakdown:

Category Count
Duplication 2

The test coverage on the diff in this pull request is 64.2% (80% is the threshold).

This pull request will bring the total coverage in the repository to 83.7%.

View more on Code Climate.

@jiabaow jiabaow merged commit 184d32d into main Jun 8, 2022
@jiabaow jiabaow deleted the jwen/fix-profile branch June 8, 2022 13:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants