Skip to content

Commit

Permalink
codinguser#869 - Remove fetchAccountsOrderedByFullName() method in or…
Browse files Browse the repository at this point in the history
…der to use fetchAccountsOrderedByFavoriteAndFullName() everywhere
  • Loading branch information
JeanGarf committed Jan 19, 2020
1 parent 85704b4 commit 5f72205
Showing 1 changed file with 15 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 <code>where</code>
* <p>This method returns the accounts list sorted by the full account name</p>
* @param where SQL WHERE statement without the 'WHERE' itself
* @param whereArgs where args
* @return Cursor set of accounts which fulfill <code>where</code>
*/
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 <code>where</code>
// * <p>This method returns the accounts list sorted by the full account name</p>
// * @param where SQL WHERE statement without the 'WHERE' itself
// * @param whereArgs where args
// * @return Cursor set of accounts which fulfill <code>where</code>
// */
// 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 <code>where</code>
Expand Down

0 comments on commit 5f72205

Please sign in to comment.