changed to Google Play Services (ICS) component and up-to-date Support V4 library

This commit is contained in:
Philipp Crocoll
2014-11-30 21:43:38 +01:00
parent 0a1df65358
commit ac55c1fd86
32 changed files with 6916 additions and 4427 deletions

View File

@@ -79,6 +79,11 @@ namespace keepass2android.Io
throw new NotImplementedException();
}
public void PrepareFileUsage(Context ctx, IOConnectionInfo ioc)
{
}
public bool RequiresSetup(IOConnectionInfo ioConnection)
{
return false;

View File

@@ -488,6 +488,11 @@ namespace keepass2android.Io
_cachedStorage.PrepareFileUsage(activity, ioc, requestCode, alwaysReturnSuccess || IsCached(ioc));
}
public void PrepareFileUsage(Context ctx, IOConnectionInfo ioc)
{
_cachedStorage.PrepareFileUsage(ctx, ioc);
}
public void OnCreate(IFileStorageSetupActivity activity, Bundle savedInstanceState)
{
_cachedStorage.OnCreate(activity, savedInstanceState);

View File

@@ -249,6 +249,16 @@ namespace keepass2android.Io
_jfs.PrepareFileUsage(ctx, IocToPath(ioc));
}
public bool IsPermanentLocation(IOConnectionInfo ioc)
{
return true;
}
public bool IsReadOnly(IOConnectionInfo ioc)
{
return false; //TODO implement. note, however, that we MAY return false even if it's read-only
}
public void OnCreate(IFileStorageSetupActivity activity, Bundle savedInstanceState)
{
_jfs.OnCreate(((IJavaFileStorageFileStorageSetupActivity)activity), savedInstanceState);