Fixed bug with preare-file-usage in GDrive
added GetDisplayName in FileStorages
This commit is contained in:
@@ -195,5 +195,10 @@ namespace keepass2android.Io
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public string GetDisplayName(IOConnectionInfo ioc)
|
||||
{
|
||||
return ioc.GetDisplayName();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -476,6 +476,11 @@ namespace keepass2android.Io
|
||||
_cachedStorage.OnActivityResult(activity, requestCode, resultCode, data);
|
||||
}
|
||||
|
||||
public string GetDisplayName(IOConnectionInfo ioc)
|
||||
{
|
||||
return _cachedStorage.GetDisplayName(ioc);
|
||||
}
|
||||
|
||||
|
||||
public string GetBaseVersionHash(IOConnectionInfo ioc)
|
||||
{
|
||||
|
||||
@@ -145,7 +145,11 @@ namespace keepass2android.Io
|
||||
void OnResume(IFileStorageSetupActivity activity);
|
||||
void OnStart(IFileStorageSetupActivity activity);
|
||||
void OnActivityResult(IFileStorageSetupActivity activity, int requestCode, int resultCode, Intent data);
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Converts the given path to a displayable string
|
||||
/// </summary>
|
||||
string GetDisplayName(IOConnectionInfo ioc);
|
||||
}
|
||||
|
||||
public interface IWriteTransaction: IDisposable
|
||||
|
||||
@@ -275,6 +275,11 @@ namespace keepass2android.Io
|
||||
_jfs.OnActivityResult(((IJavaFileStorageFileStorageSetupActivity) activity), requestCode, resultCode, data);
|
||||
}
|
||||
|
||||
public string GetDisplayName(IOConnectionInfo ioc)
|
||||
{
|
||||
return _jfs.GetDisplayName(ioc.Path);
|
||||
}
|
||||
|
||||
private DateTime JavaTimeToCSharp(long javatime)
|
||||
{
|
||||
return new DateTime(1970, 1, 1).AddMilliseconds(javatime);
|
||||
|
||||
Reference in New Issue
Block a user