More refactoring

Added first simple unit test
This commit is contained in:
Philipp Crocoll
2013-06-18 21:12:34 +02:00
parent 8b08baa51a
commit 533c6f207e
23 changed files with 188 additions and 50 deletions

View File

@@ -110,12 +110,12 @@ namespace keepass2android
{
DeletePermanently = true;
ProgressTask pt = new ProgressTask(App, Ctx, this, UiStringKey.saving_database);
pt.run();
pt.Run();
},
(dlgSender, dlgEvt) => {
DeletePermanently = false;
ProgressTask pt = new ProgressTask(App, Ctx, this, UiStringKey.saving_database);
pt.run();
pt.Run();
},
(dlgSender, dlgEvt) => {},
Ctx);
@@ -125,7 +125,7 @@ namespace keepass2android
} else
{
ProgressTask pt = new ProgressTask(App, Ctx, this, UiStringKey.saving_database);
pt.run();
pt.Run();
}
}

View File

@@ -77,7 +77,7 @@ namespace keepass2android
private class AfterSave : OnFinish {
private readonly CompositeKey _backup;
private readonly DateTime _previousKeyChanged;
private PwDatabase _db;
private readonly PwDatabase _db;
public AfterSave(CompositeKey backup, DateTime previousKeyChanged, PwDatabase db, OnFinish finish): base(finish) {
_previousKeyChanged = previousKeyChanged;