From a555697ff886b2d652f0205f7a60d62765a4b658 Mon Sep 17 00:00:00 2001 From: PhilippC Date: Tue, 19 Mar 2013 04:22:39 +0100 Subject: [PATCH] modified comments --- src/keepass2android/Database.cs | 16 ---------------- .../fileselect/FileSelectActivity.cs | 3 ++- 2 files changed, 2 insertions(+), 17 deletions(-) diff --git a/src/keepass2android/Database.cs b/src/keepass2android/Database.cs index 7f068a03..0da4ddaa 100644 --- a/src/keepass2android/Database.cs +++ b/src/keepass2android/Database.cs @@ -278,22 +278,6 @@ namespace keepass2android } - /* - public void LoadData (Context mCtx, string mFileName, string mPass, string mKey, UpdateStatus mStatus) - { - KeePassLib.PwDatabase pwDatabase = new KeePassLib.PwDatabase(); - KeePassLib.Serialization.IOConnectionInfo iocInfo = KeePassLib.Serialization.IOConnectionInfo.FromPath("/sdcard/keepass2androidtest.kdbx"); - KeePassLib.Serialization.IOConnectionInfo iocInfoSave = KeePassLib.Serialization.IOConnectionInfo.FromPath("/sdcard/keepass2androidtestSaved.kdbx"); - KeePassLib.Keys.CompositeKey key = new KeePassLib.Keys.CompositeKey(); - key.AddUserKey(new KeePassLib.Keys.KcpPassword("test")); - - pwDatabase.Open(iocInfo, key, new LogToButton(this)); - pwDatabase.RootGroup.AddGroup(new KeePassLib.PwGroup(true, true, "generatedFromKp2ANeu", KeePassLib.PwIcon.Folder), true); - pwDatabase.SaveAs(iocInfoSave,false,new LogToButton(this)); - pwDatabase.Close(); - //KeePassLib.Serialization.KdbxFile f = new KeePassLib.Serialization.KdbxFile(pwDatabase); - } -*/ } diff --git a/src/keepass2android/fileselect/FileSelectActivity.cs b/src/keepass2android/fileselect/FileSelectActivity.cs index 1779bad8..f1a824a0 100644 --- a/src/keepass2android/fileselect/FileSelectActivity.cs +++ b/src/keepass2android/fileselect/FileSelectActivity.cs @@ -343,7 +343,8 @@ namespace keepass2android if (mSuccess) { // Add to recent files FileDbHelper dbHelper = App.fileDbHelper; - + + //TODO: getFilename always returns "" -> bug? dbHelper.createFile(mIoc, getFilename()); GroupActivity.Launch(activty);