mirror of
https://github.com/ClaytonWWilson/Listify.git
synced 2025-12-15 18:28:47 +00:00
Merge pull request #98 from ClaytonWWilson/aaron-branch-2
Aaron branch 2
This commit is contained in:
commit
809893ff96
@ -48,7 +48,12 @@ public class ShoppingListsAdapter extends BaseAdapter {
|
||||
List curList = lists.get(position);
|
||||
|
||||
TextView tvListName = (TextView) convertView.findViewById(R.id.shopping_list_name);
|
||||
tvListName.setText(curList.getName());
|
||||
if(curList.isShared()) {
|
||||
tvListName.setText(curList.getName() + " (shared)");
|
||||
}
|
||||
else {
|
||||
tvListName.setText(curList.getName());
|
||||
}
|
||||
|
||||
return convertView;
|
||||
}
|
||||
|
||||
@ -92,7 +92,12 @@ public class ShoppingListsSwipeableAdapter extends BaseAdapter {
|
||||
// Bind the view to the unique list ID
|
||||
binderHelper.bind(holder.swipeLayout, Integer.toString(curList.getItemID()));
|
||||
|
||||
holder.textView.setText(curList.getName());
|
||||
if(curList.isShared()) {
|
||||
holder.textView.setText(curList.getName() + " (shared)");
|
||||
}
|
||||
else {
|
||||
holder.textView.setText(curList.getName());
|
||||
}
|
||||
holder.deleteList.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user