From 5f7220594ff0d97ca0e8e5643ea1d5fad5d1f636 Mon Sep 17 00:00:00 2001 From: JeanGarf Date: Sun, 19 Jan 2020 22:57:58 +0100 Subject: [PATCH] #869 - Remove fetchAccountsOrderedByFullName() method in order to use fetchAccountsOrderedByFavoriteAndFullName() everywhere --- .../android/db/adapter/AccountsDbAdapter.java | 29 ++++++++++--------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/app/src/main/java/org/gnucash/android/db/adapter/AccountsDbAdapter.java b/app/src/main/java/org/gnucash/android/db/adapter/AccountsDbAdapter.java index e19138306..f5d43e25d 100644 --- a/app/src/main/java/org/gnucash/android/db/adapter/AccountsDbAdapter.java +++ b/app/src/main/java/org/gnucash/android/db/adapter/AccountsDbAdapter.java @@ -731,20 +731,21 @@ public Cursor fetchAccounts(@Nullable String where, @Nullable String[] whereArgs null, where, whereArgs, null, null, orderBy); } - - /** - * Returns a Cursor set of accounts which fulfill where - *

This method returns the accounts list sorted by the full account name

- * @param where SQL WHERE statement without the 'WHERE' itself - * @param whereArgs where args - * @return Cursor set of accounts which fulfill where - */ - public Cursor fetchAccountsOrderedByFullName(String where, String[] whereArgs) { - Log.v(LOG_TAG, "Fetching all accounts from db where " + where); - return mDb.query(AccountEntry.TABLE_NAME, - null, where, whereArgs, null, null, - AccountEntry.COLUMN_FULL_NAME + " ASC"); - } + + // #869 +// /** +// * Returns a Cursor set of accounts which fulfill where +// *

This method returns the accounts list sorted by the full account name

+// * @param where SQL WHERE statement without the 'WHERE' itself +// * @param whereArgs where args +// * @return Cursor set of accounts which fulfill where +// */ +// public Cursor fetchAccountsOrderedByFullName(String where, String[] whereArgs) { +// Log.v(LOG_TAG, "Fetching all accounts from db where " + where); +// return mDb.query(AccountEntry.TABLE_NAME, +// null, where, whereArgs, null, null, +// AccountEntry.COLUMN_FULL_NAME + " ASC"); +// } /** * Returns a Cursor set of accounts which fulfill where