mirror of
https://github.com/moparisthebest/open-keychain
synced 2025-02-25 07:51:48 -05:00
Remove kill hack in KeychainDatabase
This commit is contained in:
parent
f0e3bb408c
commit
95d25cb6a9
@ -239,15 +239,6 @@ public class KeychainDatabase extends SQLiteOpenHelper {
|
|||||||
}
|
}
|
||||||
}.getReadableDatabase();
|
}.getReadableDatabase();
|
||||||
|
|
||||||
// kill current!
|
|
||||||
{ // TODO don't kill current.
|
|
||||||
Log.d(Constants.TAG, "Truncating db...");
|
|
||||||
SQLiteDatabase d = getWritableDatabase();
|
|
||||||
d.execSQL("DELETE FROM keyrings_public");
|
|
||||||
d.close();
|
|
||||||
Log.d(Constants.TAG, "Ok.");
|
|
||||||
}
|
|
||||||
|
|
||||||
Cursor c = null;
|
Cursor c = null;
|
||||||
try {
|
try {
|
||||||
// we insert in two steps: first, all public keys that have secret keys
|
// we insert in two steps: first, all public keys that have secret keys
|
||||||
|
Loading…
x
Reference in New Issue
Block a user