mirror of
https://github.com/ClaytonWWilson/Listify.git
synced 2025-12-16 10:48:46 +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);
|
List curList = lists.get(position);
|
||||||
|
|
||||||
TextView tvListName = (TextView) convertView.findViewById(R.id.shopping_list_name);
|
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;
|
return convertView;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -92,7 +92,12 @@ public class ShoppingListsSwipeableAdapter extends BaseAdapter {
|
|||||||
// Bind the view to the unique list ID
|
// Bind the view to the unique list ID
|
||||||
binderHelper.bind(holder.swipeLayout, Integer.toString(curList.getItemID()));
|
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() {
|
holder.deleteList.setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user