Cleanup, prevent encrypt Intent inception

This commit is contained in:
Dominik Schürmann committed 2014-08-04 14:42:03 +02:00
1 parent b42afcd32c
commit 839294d27c
7 files changed
+98 -25

No files matched your search

@@ -165,8 +165,8 @@ public class KeychainDatabase extends SQLiteOpenHelper {
// make sure this is only done once, on the first instance!
boolean iAmIt = false;
synchronized(KeychainDatabase.class) {
if(!KeychainDatabase.apgHack) {
synchronized (KeychainDatabase.class) {
if (!KeychainDatabase.apgHack) {
iAmIt = true;
KeychainDatabase.apgHack = true;
}
@@ -334,9 +334,9 @@ public class KeychainDatabase extends SQLiteOpenHelper {
File out;
if (restore) {
in = context.getDatabasePath("debug_backup.db");
out = context.getDatabasePath("openkeychain.db");
out = context.getDatabasePath(DATABASE_NAME);
} else {
in = context.getDatabasePath("openkeychain.db");
in = context.getDatabasePath(DATABASE_NAME);
out = context.getDatabasePath("debug_backup.db");
out.createNewFile();
}