Fix #256 - Can share with one account

This commit is contained in:
Thomas 2022-07-18 17:46:29 +02:00
parent 17f727fd9f
commit ef58c7bc40
2 changed files with 2 additions and 2 deletions

View file

@ -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();

View file

@ -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;
}