Skip to content

Commit

Permalink
Upgraded wishlist to 0.5
Browse files Browse the repository at this point in the history
Also, this need change in XxxAdapter because wishlist no longer uses
R.ids in setXXX() methods. We have to use array index instead.
  • Loading branch information
krtek committed Nov 8, 2012
1 parent a692906 commit 3192458
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
<dependency>
<groupId>com.github.kevinsawicki</groupId>
<artifactId>wishlist</artifactId>
<version>0.4</version>
<version>0.5</version>
<type>apklib</type>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ protected int[] getChildViewIds() {
protected void update(int position, CheckIn item) {
super.update(position, item);

setText(R.id.tv_name, item.getName());
setText(0, item.getName());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ protected int[] getChildViewIds() {
protected void update(int position, News item) {
super.update(position, item);

setText(R.id.tv_title, item.getTitle());
setText(R.id.tv_summary, item.getContent());
setText(0, item.getTitle());
setText(1, item.getContent());
//setNumber(R.id.tv_date, item.getCreatedAt());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ protected int[] getChildViewIds() {
@Override
protected void update(int position, User user) {

avatars.bind(imageView(R.id.iv_avatar), user);
avatars.bind(imageView(0), user);

setText(R.id.tv_name, String.format("%1$s %2$s", user.getFirstName(), user.getLastName()));
setText(1, String.format("%1$s %2$s", user.getFirstName(), user.getLastName()));

}

Expand Down

0 comments on commit 3192458

Please sign in to comment.