Cleanup and simplification

This commit is contained in:
Dominik Schürmann
2014-03-13 18:27:08 +01:00
parent fb1b0deaf5
commit 471cefa71f
2 changed files with 24 additions and 61 deletions

View File

@@ -414,7 +414,7 @@ public class KeychainProvider extends ContentProvider {
* Builds default query for keyRings: KeyRings table is joined with UserIds and Keys
*/
private SQLiteQueryBuilder buildKeyRingQuery(SQLiteQueryBuilder qb, int match) {
if(match != UNIFIED_KEY_RING) {
if (match != UNIFIED_KEY_RING) {
// public or secret keyring
qb.appendWhere(Tables.KEY_RINGS + "." + KeyRingsColumns.TYPE + " = ");
qb.appendWhereEscapeString(Integer.toString(getKeyType(match)));