diff options
author | Thomas <tschneider.ac@gmail.com> | 2022-07-18 17:46:29 +0200 |
---|---|---|
committer | Thomas <tschneider.ac@gmail.com> | 2022-07-18 17:46:29 +0200 |
commit | ef58c7bc40fdea03ece54b38527ccb318d5777d9 (patch) | |
tree | 889f30df10df1bc784cabc3eaa1a4b186ad7b6ae /app | |
parent | 17f727fd9f058fbf4be20836f80f27d256451d04 (diff) |
Fix #256 - Can share with one account
Diffstat (limited to 'app')
-rw-r--r-- | app/src/main/java/app/fedilab/android/BaseMainActivity.java | 2 | ||||
-rw-r--r-- | app/src/main/java/app/fedilab/android/client/entities/app/Account.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/src/main/java/app/fedilab/android/BaseMainActivity.java b/app/src/main/java/app/fedilab/android/BaseMainActivity.java index 49c3f744d..231becca3 100644 --- a/app/src/main/java/app/fedilab/android/BaseMainActivity.java +++ b/app/src/main/java/app/fedilab/android/BaseMainActivity.java @@ -537,7 +537,7 @@ public abstract class BaseMainActivity extends BaseActivity implements NetworkSt headerMainBinding.ownerAccounts.setImageResource(R.drawable.ic_baseline_arrow_drop_up_24); new Thread(() -> { try { - List<BaseAccount> accounts = new Account(BaseMainActivity.this).getAll(); + List<BaseAccount> accounts = new Account(BaseMainActivity.this).getCrossAccounts(); Handler mainHandler = new Handler(Looper.getMainLooper()); Runnable myRunnable = () -> { binding.navView.getMenu().clear(); diff --git a/app/src/main/java/app/fedilab/android/client/entities/app/Account.java b/app/src/main/java/app/fedilab/android/client/entities/app/Account.java index 1be6458b4..046bc5c72 100644 --- a/app/src/main/java/app/fedilab/android/client/entities/app/Account.java +++ b/app/src/main/java/app/fedilab/android/client/entities/app/Account.java @@ -295,7 +295,7 @@ public class Account extends BaseAccount implements Serializable { } try { Cursor c = db.query(Sqlite.TABLE_USER_ACCOUNT, null, null, null, null, null, null, null); - return cursorToListUser(c); + return cursorToListUserWithOwner(c); } catch (Exception e) { return null; } |