- // 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 (hiddenByStar) return false;
-
- if (level == 0) return true;
+ public @Nullable MobileLedgerProfile getProfile() {
+ return profileWeakReference.get();
+ }
+ @Override
+ public int hashCode() {
+ return name.hashCode();
+ }
+ @Override
+ public boolean equals(@Nullable Object obj) {
+ if (obj == null)
+ return false;