mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-11-23 17:22:16 -05:00
Temporary fix for inserting by content provider
This commit is contained in:
parent
cb3e149c14
commit
0edfd7ed48
@ -757,14 +757,14 @@ public class KeychainProvider extends ContentProvider {
|
||||
|
||||
rowId = db.insertOrThrow(Tables.KEYS, null, values);
|
||||
// TODO: this is wrong:
|
||||
// rowUri = Keys.buildPublicKeysUri(Long.toString(rowId));
|
||||
rowUri = Keys.buildPublicKeysUri(Long.toString(rowId));
|
||||
sendBroadcastDatabaseChange(getKeyType(match), getType(uri));
|
||||
|
||||
break;
|
||||
case PUBLIC_KEY_RING_USER_ID:
|
||||
rowId = db.insertOrThrow(Tables.USER_IDS, null, values);
|
||||
// TODO: this is wrong:
|
||||
// rowUri = UserIds.buildPublicUserIdsUri(Long.toString(rowId));
|
||||
rowUri = UserIds.buildPublicUserIdsUri(Long.toString(rowId));
|
||||
sendBroadcastDatabaseChange(getKeyType(match), getType(uri));
|
||||
|
||||
break;
|
||||
@ -781,14 +781,14 @@ public class KeychainProvider extends ContentProvider {
|
||||
|
||||
rowId = db.insertOrThrow(Tables.KEYS, null, values);
|
||||
// TODO: this is wrong:
|
||||
// rowUri = Keys.buildSecretKeysUri(Long.toString(rowId));
|
||||
rowUri = Keys.buildSecretKeysUri(Long.toString(rowId));
|
||||
sendBroadcastDatabaseChange(getKeyType(match), getType(uri));
|
||||
|
||||
break;
|
||||
case SECRET_KEY_RING_USER_ID:
|
||||
rowId = db.insertOrThrow(Tables.USER_IDS, null, values);
|
||||
// TODO: this is wrong:
|
||||
// rowUri = UserIds.buildSecretUserIdsUri(Long.toString(rowId));
|
||||
rowUri = UserIds.buildSecretUserIdsUri(Long.toString(rowId));
|
||||
|
||||
break;
|
||||
case API_APPS:
|
||||
|
Loading…
Reference in New Issue
Block a user