mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-11-24 01:32: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);
|
rowId = db.insertOrThrow(Tables.KEYS, null, values);
|
||||||
// TODO: this is wrong:
|
// TODO: this is wrong:
|
||||||
// rowUri = Keys.buildPublicKeysUri(Long.toString(rowId));
|
rowUri = Keys.buildPublicKeysUri(Long.toString(rowId));
|
||||||
sendBroadcastDatabaseChange(getKeyType(match), getType(uri));
|
sendBroadcastDatabaseChange(getKeyType(match), getType(uri));
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case PUBLIC_KEY_RING_USER_ID:
|
case PUBLIC_KEY_RING_USER_ID:
|
||||||
rowId = db.insertOrThrow(Tables.USER_IDS, null, values);
|
rowId = db.insertOrThrow(Tables.USER_IDS, null, values);
|
||||||
// TODO: this is wrong:
|
// TODO: this is wrong:
|
||||||
// rowUri = UserIds.buildPublicUserIdsUri(Long.toString(rowId));
|
rowUri = UserIds.buildPublicUserIdsUri(Long.toString(rowId));
|
||||||
sendBroadcastDatabaseChange(getKeyType(match), getType(uri));
|
sendBroadcastDatabaseChange(getKeyType(match), getType(uri));
|
||||||
|
|
||||||
break;
|
break;
|
||||||
@ -781,14 +781,14 @@ public class KeychainProvider extends ContentProvider {
|
|||||||
|
|
||||||
rowId = db.insertOrThrow(Tables.KEYS, null, values);
|
rowId = db.insertOrThrow(Tables.KEYS, null, values);
|
||||||
// TODO: this is wrong:
|
// TODO: this is wrong:
|
||||||
// rowUri = Keys.buildSecretKeysUri(Long.toString(rowId));
|
rowUri = Keys.buildSecretKeysUri(Long.toString(rowId));
|
||||||
sendBroadcastDatabaseChange(getKeyType(match), getType(uri));
|
sendBroadcastDatabaseChange(getKeyType(match), getType(uri));
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case SECRET_KEY_RING_USER_ID:
|
case SECRET_KEY_RING_USER_ID:
|
||||||
rowId = db.insertOrThrow(Tables.USER_IDS, null, values);
|
rowId = db.insertOrThrow(Tables.USER_IDS, null, values);
|
||||||
// TODO: this is wrong:
|
// TODO: this is wrong:
|
||||||
// rowUri = UserIds.buildSecretUserIdsUri(Long.toString(rowId));
|
rowUri = UserIds.buildSecretUserIdsUri(Long.toString(rowId));
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case API_APPS:
|
case API_APPS:
|
||||||
|
Loading…
Reference in New Issue
Block a user