Update UniversalImageLoader -> 1.9.5. Also fixing cancellation issues. Basically, a task sent to the UniversalImageLoader can no longer be cancelled using cancellationToken. The image will be cached regardless.
***NO_CI*** work-items: #16511, #16547 git-tfs-id: [http://tfs04:8080/tfs/Umbrella]$/Umbrella/Umbrella/Projects;C8132
This commit is contained in:
Родитель
e2d6ec8cd0
Коммит
7d42bf29ed
|
@ -12,144 +12,6 @@ using Android.Widget;
|
|||
using System.Collections;
|
||||
using Android.Graphics;
|
||||
|
||||
// Fixes to get rid of "does not implement inherited abstract member" errors
|
||||
|
||||
namespace Com.Nostra13.Universalimageloader.Cache.Memory.Impl
|
||||
{
|
||||
partial class FuzzyKeyMemoryCache
|
||||
{
|
||||
Java.Lang.Object IMemoryCacheAware.Get(Java.Lang.Object p0)
|
||||
{
|
||||
if (p0 != null)
|
||||
{
|
||||
return Get((String)p0);
|
||||
}
|
||||
else
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
ICollection IMemoryCacheAware.Keys()
|
||||
{
|
||||
return (ICollection)Keys();
|
||||
}
|
||||
|
||||
bool IMemoryCacheAware.Put(Java.Lang.Object p0, Java.Lang.Object p1)
|
||||
{
|
||||
return Put((String)p0, (Bitmap)p1);
|
||||
}
|
||||
|
||||
Java.Lang.Object IMemoryCacheAware.Remove(Java.Lang.Object p0)
|
||||
{
|
||||
return Remove((string)p0);
|
||||
}
|
||||
}
|
||||
|
||||
partial class LimitedAgeMemoryCache
|
||||
{
|
||||
Java.Lang.Object IMemoryCacheAware.Get(Java.Lang.Object p0)
|
||||
{
|
||||
if (p0 != null)
|
||||
{
|
||||
return Get((String)p0);
|
||||
}
|
||||
else
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
ICollection IMemoryCacheAware.Keys()
|
||||
{
|
||||
return (ICollection)Keys();
|
||||
}
|
||||
|
||||
bool IMemoryCacheAware.Put(Java.Lang.Object p0, Java.Lang.Object p1)
|
||||
{
|
||||
return Put((String)p0, (Bitmap)p1);
|
||||
}
|
||||
|
||||
Java.Lang.Object IMemoryCacheAware.Remove(Java.Lang.Object p0)
|
||||
{
|
||||
return Remove((string)p0);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// Fixing ther error 'Com.Nostra13.Universalimageloader.Cache.Memory.Impl.LruMemoryCache' does not implement interface member 'Com.Nostra13.Universalimageloader.Cache.Memory.IMemoryCacheAware.Keys()'. 'Com.Nostra13.Universalimageloader.Cache.Memory.Impl.LruMemoryCache.Keys()'
|
||||
// cannot implement 'Com.Nostra13.Universalimageloader.Cache.Memory.IMemoryCacheAware.Keys()' because it does not have the matching return type of 'System.Collections.ICollection'. -->
|
||||
|
||||
partial class LruMemoryCache
|
||||
{
|
||||
Java.Lang.Object IMemoryCacheAware.Get(Java.Lang.Object p0)
|
||||
{
|
||||
if (p0 != null)
|
||||
{
|
||||
return Get((String)p0);
|
||||
}
|
||||
else
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
ICollection IMemoryCacheAware.Keys()
|
||||
{
|
||||
return (ICollection)Keys();
|
||||
}
|
||||
|
||||
bool IMemoryCacheAware.Put(Java.Lang.Object p0, Java.Lang.Object p1)
|
||||
{
|
||||
return Put((String)p0, (Bitmap)p1);
|
||||
}
|
||||
|
||||
Java.Lang.Object IMemoryCacheAware.Remove(Java.Lang.Object p0)
|
||||
{
|
||||
return Remove((string)p0);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
namespace Com.Nostra13.Universalimageloader.Cache.Memory
|
||||
{
|
||||
partial class BaseMemoryCache : IMemoryCache
|
||||
{
|
||||
Java.Lang.Object IMemoryCacheAware.Get(Java.Lang.Object p0)
|
||||
{
|
||||
if (p0 != null)
|
||||
{
|
||||
return Get((String)p0);
|
||||
}
|
||||
else
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
ICollection IMemoryCacheAware.Keys()
|
||||
{
|
||||
return (ICollection)Keys();
|
||||
}
|
||||
|
||||
bool IMemoryCacheAware.Put(Java.Lang.Object p0, Java.Lang.Object p1)
|
||||
{
|
||||
return Put((String)p0, (Bitmap)p1);
|
||||
}
|
||||
|
||||
Java.Lang.Object IMemoryCacheAware.Remove(Java.Lang.Object p0)
|
||||
{
|
||||
return Remove((string)p0);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
abstract partial class BaseMemoryCacheInvoker
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
namespace Com.Nostra13.Universalimageloader.Core.Assist.Deque
|
||||
{
|
||||
|
|
|
@ -102,7 +102,8 @@ namespace Com.Nostra13.Universalimageloader.Core
|
|||
|
||||
public ImageViewAwareCancellable(global::Android.Widget.ImageView p0, CancellationToken ct) : base(p0)
|
||||
{
|
||||
_ct = ct;
|
||||
//We do not want to Cancel any request since it makes the ImageLoader code misbehave in multiple scenarios.
|
||||
_ct = CancellationToken.None;
|
||||
}
|
||||
|
||||
public override bool SetImageBitmap(Bitmap p0)
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
|
||||
<metadata>
|
||||
<id>UniversalImageLoader</id>
|
||||
<version>1.9.3.2</version>
|
||||
<version>1.9.5.0</version>
|
||||
<title>Android Universal Image Loader</title>
|
||||
<authors>nventive</authors>
|
||||
<owners />
|
||||
|
@ -17,6 +17,6 @@
|
|||
<file src="..\Bin\Release\*.dll" target="lib\MonoAndroid" />
|
||||
<file src="..\Bin\Release\*.pdb" target="lib\MonoAndroid" />
|
||||
|
||||
<file src="..\Jars\universal-image-loader-1.9.3.jar" target="content" />
|
||||
<file src="..\Jars\universal-image-loader-1.9.5.jar" target="content" />
|
||||
</files>
|
||||
</package>
|
|
@ -5,7 +5,7 @@
|
|||
<PropertyGroup>
|
||||
<Revision>$(TeamBuildNumber.Substring(1))</Revision>
|
||||
<NuGetBin>..\packages\NuGet.CommandLine.2.8.3\tools\NuGet.exe</NuGetBin>
|
||||
<PackageVersion>1.9.3.$(Revision)</PackageVersion>
|
||||
<PackageVersion>1.9.5.$(Revision)</PackageVersion>
|
||||
</PropertyGroup>
|
||||
|
||||
<Target Name="Build">
|
||||
|
|
Двоичные данные
Jars/universal-image-loader-1.9.3.jar
Двоичные данные
Jars/universal-image-loader-1.9.3.jar
Двоичный файл не отображается.
Двоичный файл не отображается.
|
@ -5,5 +5,5 @@
|
|||
<attr path="/api/package[@name='com.nostra13.universalimageloader.cache.memory.impl']/class[@name='LargestLimitedMemoryCache']/method[@name='removeNext']" name="managedReturn">Java.Lang.Object</attr>
|
||||
<attr path="/api/package[@name='com.nostra13.universalimageloader.cache.memory.impl']/class[@name='LRULimitedMemoryCache']/method[@name='removeNext']" name="managedReturn">Java.Lang.Object</attr>
|
||||
<attr path="/api/package[@name='com.nostra13.universalimageloader.cache.memory.impl']/class[@name='UsingFreqLimitedMemoryCache']/method[@name='removeNext']" name="managedReturn">Java.Lang.Object</attr>-->
|
||||
<attr path="/api/package[@name='com.nostra13.universalimageloader.cache.disc.impl.ext']/class[@name='LruDiscCache']/field[@name='cache']" name="type">Java.Lang.Object</attr>
|
||||
<attr path="/api/package[@name='com.nostra13.universalimageloader.cache.disc.impl.ext']/class[@name='LruDiskCache']/field[@name='cache']" name="type">Java.Lang.Object</attr>
|
||||
</metadata>
|
||||
|
|
|
@ -58,14 +58,14 @@
|
|||
<TransformFile Include="Transforms\EnumFields.xml" />
|
||||
<TransformFile Include="Transforms\EnumMethods.xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<EmbeddedJar Include="Jars\universal-image-loader-1.9.3.jar" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Page Include="Build\ParallelTemplate.11.2.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
</Page>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<InputJar Include="Jars\universal-image-loader-1.9.5.jar" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.Bindings.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
|
|
Загрузка…
Ссылка в новой задаче