Remove kill hack in KeychainDatabase
This commit is contained in:
1 parent
f0e3bb408c
commit
95d25cb6a9
1 file changed
-9
-9
@@ -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
|
||||||
|
|||||||
Reference in new issue
Block a user