From 047e31936fa87830b38d4f9a52c7c4dabb84467e Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Fri, 11 Jan 2019 18:44:54 +0800 Subject: Display the Follow Chip only if the user can be followed. Change schemes of database users. --- app/src/main/java/User/UserData.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'app/src/main/java/User/UserData.java') diff --git a/app/src/main/java/User/UserData.java b/app/src/main/java/User/UserData.java index 89eafb96..a3b15b0e 100644 --- a/app/src/main/java/User/UserData.java +++ b/app/src/main/java/User/UserData.java @@ -16,13 +16,16 @@ public class UserData extends SubscribedUserData { private boolean isGold; @ColumnInfo(name = "is_friend") private boolean isFriend; + @ColumnInfo(name = "can_be_followed") + private boolean canBeFollowed; - public UserData(@NonNull String name, String iconUrl, String banner, int karma, boolean isGold, boolean isFriend) { + public UserData(@NonNull String name, String iconUrl, String banner, int karma, boolean isGold, boolean isFriend, boolean canBeFollowed) { super(name, iconUrl); this.banner = banner; this.karma = karma; this.isGold = isGold; this.isFriend = isFriend; + this.canBeFollowed = canBeFollowed; } public String getBanner() { @@ -40,4 +43,8 @@ public class UserData extends SubscribedUserData { public boolean isFriend() { return isFriend; } + + public boolean isCanBeFollowed() { + return canBeFollowed; + } } -- cgit v1.2.3