diff options
Diffstat (limited to 'src/main/java/de/thedevstack/conversationsplus/entities/Bookmark.java')
-rw-r--r-- | src/main/java/de/thedevstack/conversationsplus/entities/Bookmark.java | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/src/main/java/de/thedevstack/conversationsplus/entities/Bookmark.java b/src/main/java/de/thedevstack/conversationsplus/entities/Bookmark.java index 8a6b1405..9e67bf2d 100644 --- a/src/main/java/de/thedevstack/conversationsplus/entities/Bookmark.java +++ b/src/main/java/de/thedevstack/conversationsplus/entities/Bookmark.java @@ -2,6 +2,8 @@ package de.thedevstack.conversationsplus.entities; import android.graphics.Color; +import android.graphics.Color; + import java.util.ArrayList; import java.util.List; import java.util.Locale; @@ -82,12 +84,7 @@ public class Bookmark extends Element implements ListItem { } public String getNick() { - Element nick = this.findChild("nick"); - if (nick != null) { - return nick.getContent(); - } else { - return null; - } + return this.findChildContent("nick"); } public void setNick(String nick) { @@ -103,12 +100,7 @@ public class Bookmark extends Element implements ListItem { } public String getPassword() { - Element password = this.findChild("password"); - if (password != null) { - return password.getContent(); - } else { - return null; - } + return this.findChildContent("password"); } public void setPassword(String password) { |