]> git.ktnx.net Git - mobile-ledger.git/blobdiff - app/src/main/java/net/ktnx/mobileledger/model/LedgerAccount.java
more asynchronous account list (re-)loading
[mobile-ledger.git] / app / src / main / java / net / ktnx / mobileledger / model / LedgerAccount.java
index 3bc01d1fecd852cc957aeb205640465dec80320f..11c1a16bfa097febf4361fb5c1e294cc4647269d 100644 (file)
@@ -66,13 +66,7 @@ public class LedgerAccount {
                name.equals(((LedgerAccount) obj).getName());
     }
     // an account is visible if:
-    //  - it is starred (not hidden by a star)
-    //  - and it has an expanded parent or is a top account
-    public boolean isVisible() {
-        if (level == 0) return true;
-
-        return isVisible(Data.accounts);
-    }
+    //  - it has an expanded parent or is a top account
     public boolean isVisible(List<LedgerAccount> list) {
         for (LedgerAccount acc : list) {
             if (acc.isParentOf(this)) {