Skip to content

Commit

Permalink
hotfix for comments recyling bug
Browse files Browse the repository at this point in the history
  • Loading branch information
burntcookie90 committed Oct 25, 2014
1 parent 81175e9 commit 24de371
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ android {
defaultConfig {
minSdkVersion 15
targetSdkVersion 21
versionCode 14
versionName '1.5'
versionCode 16
versionName '1.5.1'
}
signingConfigs {
release {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,21 @@ public View getView(final int position, View convertView, ViewGroup parent) {
viewHolder.mColorCode.setLayoutParams(colorCodeLayoutParams);

}
else {
FrameLayout.LayoutParams commentsContainerLayoutParams= new FrameLayout.LayoutParams(viewHolder.mCommentsContainer.getLayoutParams());
commentsContainerLayoutParams.setMargins(0,
commentsContainerLayoutParams.topMargin,
commentsContainerLayoutParams.rightMargin,
commentsContainerLayoutParams.bottomMargin);
viewHolder.mCommentsContainer.setLayoutParams(commentsContainerLayoutParams);

FrameLayout.LayoutParams colorCodeLayoutParams = new FrameLayout.LayoutParams(viewHolder.mColorCode.getLayoutParams());
colorCodeLayoutParams.setMargins(0,
colorCodeLayoutParams.topMargin,
colorCodeLayoutParams.rightMargin,
colorCodeLayoutParams.bottomMargin);
viewHolder.mColorCode.setLayoutParams(colorCodeLayoutParams);
}

switch (getItem(position).getLevel() % 8) {
case 0:
Expand Down

0 comments on commit 24de371

Please sign in to comment.