From de6e098a6849f21eba9ee23d923b2435d5c83741 Mon Sep 17 00:00:00 2001 From: Wiktor Lawski Date: Wed, 20 Aug 2014 17:46:44 +0200 Subject: [PATCH] keepass2android: Dummy implementation of IFileStorage Xamarin Studio 5.2.1 generates compilation error when one of the IFileStorage methods is not implemented. --- src/Kp2aBusinessLogic/Io/CachingFileStorage.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Kp2aBusinessLogic/Io/CachingFileStorage.cs b/src/Kp2aBusinessLogic/Io/CachingFileStorage.cs index a1c48b8a..5e02ae29 100644 --- a/src/Kp2aBusinessLogic/Io/CachingFileStorage.cs +++ b/src/Kp2aBusinessLogic/Io/CachingFileStorage.cs @@ -482,6 +482,11 @@ namespace keepass2android.Io _cachedStorage.StartSelectFile(activity, isForSave, requestCode, protocolId); } + public void PrepareFileUsage(Context ctx, IOConnectionInfo ioc) + { + // Silence Xamarin Studio 5.2.1 build error + } + public void PrepareFileUsage(IFileStorageSetupInitiatorActivity activity, IOConnectionInfo ioc, int requestCode, bool alwaysReturnSuccess) { //we try to prepare the file usage by the underlying file storage but if the ioc is cached, set the flag to ignore errors