mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 18:59:06 +01:00
Merge branch '215-remove-db-pass-when-panic' into 'master'
Delete database as panic response even when signed out The method `runOnDbThread()` depends on an executor that's created by roboguice at startup. It requires to be signed in, so use a different thread instead. Closes #215 See merge request !60
This commit is contained in:
@@ -89,14 +89,14 @@ public class PanicResponderActivity extends BriarActivity {
|
||||
}
|
||||
|
||||
private void deleteAllData() {
|
||||
runOnDbThread(new Runnable() {
|
||||
new Thread() {
|
||||
@Override
|
||||
public void run() {
|
||||
clearSharedPrefs();
|
||||
// TODO somehow delete/shred the database more thoroughly
|
||||
FileUtils
|
||||
.deleteFileOrDir(
|
||||
databaseConfig.getDatabaseDirectory());
|
||||
clearSharedPrefs();
|
||||
PanicResponder.deleteAllAppData(PanicResponderActivity.this);
|
||||
|
||||
// nothing left to do after everything is deleted,
|
||||
@@ -104,6 +104,7 @@ public class PanicResponderActivity extends BriarActivity {
|
||||
LOG.info("Signing out...");
|
||||
signOut(true);
|
||||
}
|
||||
});
|
||||
}.start();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user