Merge pull request #98 from ClaytonWWilson/aaron-branch-2

Aaron branch 2
This commit is contained in:
Aaron Sun 2020-11-03 14:44:07 -08:00 committed by GitHub
commit 809893ff96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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) {