From bdf127ab4c79dbfcf50697cb919c46d73063227e Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Sat, 13 Feb 2021 10:05:12 +0200 Subject: [PATCH] Account.toString() returns the account name --- app/src/main/java/net/ktnx/mobileledger/db/Account.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/src/main/java/net/ktnx/mobileledger/db/Account.java b/app/src/main/java/net/ktnx/mobileledger/db/Account.java index 7d88a030..d0eb1ae0 100644 --- a/app/src/main/java/net/ktnx/mobileledger/db/Account.java +++ b/app/src/main/java/net/ktnx/mobileledger/db/Account.java @@ -93,4 +93,9 @@ public class Account { public void setGeneration(int generation) { this.generation = generation; } + @NonNull + @Override + public String toString() { + return getName(); + } } -- 2.39.5