fix table reference

This commit is contained in:
Vincent Breitmoser
2018-06-20 01:09:18 +02:00
parent f22c761376
commit a3fd1609df

View File

@@ -25,6 +25,7 @@ import android.content.Context;
import android.database.Cursor;
import org.sufficientlysecure.keychain.provider.KeychainContract.UpdatedKeys;
import org.sufficientlysecure.keychain.provider.KeychainDatabase.Tables;
import timber.log.Timber;
@@ -50,7 +51,7 @@ public class KeyserverStatusDao {
public KeyserverStatus getKeyserverStatus(long masterKeyId) {
Cursor cursor = contentResolver.query(UpdatedKeys.CONTENT_URI, PROJECTION,
UpdatedKeys.MASTER_KEY_ID + " = ?", new String[] { Long.toString(masterKeyId) }, null);
Tables.UPDATED_KEYS + "." + UpdatedKeys.MASTER_KEY_ID + " = ?", new String[] { Long.toString(masterKeyId) }, null);
if (cursor == null) {
Timber.e("Error loading key items!");
return null;