Can now see if a list is shared or not

This commit is contained in:
Aaron Sun 2020-11-02 21:29:01 -08:00
parent 6189c39a1c
commit 13bd8f29ef
2 changed files with 12 additions and 2 deletions

View File

@ -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;
}

View File

@ -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) {