From ba8f249346ee25d88f6940fc65053578c85c67f8 Mon Sep 17 00:00:00 2001 From: Aaron Sun Date: Sat, 28 Nov 2020 11:43:19 -0800 Subject: [PATCH] Displays ID of sharer next to shared list (need to change to email) --- .../java/com/example/listify/adapter/ShoppingListsAdapter.java | 2 +- .../example/listify/adapter/ShoppingListsSwipeableAdapter.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Listify/app/src/main/java/com/example/listify/adapter/ShoppingListsAdapter.java b/Listify/app/src/main/java/com/example/listify/adapter/ShoppingListsAdapter.java index f7a9c6a..fa986a5 100644 --- a/Listify/app/src/main/java/com/example/listify/adapter/ShoppingListsAdapter.java +++ b/Listify/app/src/main/java/com/example/listify/adapter/ShoppingListsAdapter.java @@ -49,7 +49,7 @@ public class ShoppingListsAdapter extends BaseAdapter { TextView tvListName = (TextView) convertView.findViewById(R.id.shopping_list_name); if(curList.isShared()) { - tvListName.setText(curList.getName() + " (shared)"); + tvListName.setText(curList.getName() + " (shared by " + curList.getOwner() + ")"); } else { tvListName.setText(curList.getName()); diff --git a/Listify/app/src/main/java/com/example/listify/adapter/ShoppingListsSwipeableAdapter.java b/Listify/app/src/main/java/com/example/listify/adapter/ShoppingListsSwipeableAdapter.java index fbdf493..79a2bf0 100644 --- a/Listify/app/src/main/java/com/example/listify/adapter/ShoppingListsSwipeableAdapter.java +++ b/Listify/app/src/main/java/com/example/listify/adapter/ShoppingListsSwipeableAdapter.java @@ -94,7 +94,7 @@ public class ShoppingListsSwipeableAdapter extends BaseAdapter { binderHelper.bind(holder.swipeLayout, Integer.toString(curList.getListID())); if(curList.isShared()) { - holder.listName.setText(curList.getName() + " (shared)"); + holder.listName.setText(curList.getName() + " (shared by " + curList.getOwner() + ")"); } else { holder.listName.setText(curList.getName());