-
Notifications
You must be signed in to change notification settings - Fork 0
Conversation
@@ -34,6 +34,17 @@ class AdapterHelper { | |||
itemView.findViewById<ImageView>(imageId).visibility = View.VISIBLE | |||
} | |||
|
|||
/** |
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.
Similar blocks of code found in 2 locations. Consider refactoring.
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.
Nice work 👍 , some comments below
app/src/main/java/ch/sdp/vibester/user/UserScoreboardAdapter.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.
🤩 I like the new UI!
Is there a way to remove the duplications indicated by code climate?
Co-authored-by: jiabaow <[email protected]>
Co-authored-by: jiabaow <[email protected]>
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
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.
Such a nice UI improvement 😍👍
itemView.findViewById<TextView>(R.id.search_user_username).text = user.username | ||
if(position %2 == 0) itemView.setBackgroundColor(itemView.resources.getColor(R.color.darker_floral_white)) |
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.
Identical blocks of code found in 2 locations. Consider refactoring.
@@ -57,10 +58,13 @@ | |||
*/ | |||
fun bind(player: User, position: Int) { | |||
val newPosition = position + 1 |
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.
Identical blocks of code found in 2 locations. Consider refactoring.
Code Climate has analyzed commit 650a526 and detected 4 issues on this pull request. Here's the issue category breakdown:
The test coverage on the diff in this pull request is 91.3% (80% is the threshold). This pull request will bring the total coverage in the repository to 84.3%. View more on Code Climate. |
This PR changes: