Skip to content

Commit

Permalink
Some CachedImageFastRenderer refactorings
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-luberda committed Nov 4, 2017
1 parent 96a3b7c commit 6af79e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ namespace FFImageLoading.Forms.Droid
public class CachedImageFastRenderer : CachedImageView, IVisualElementRenderer
{
public static Type ElementRendererType = typeof(ImageRenderer).Assembly.GetType("Xamarin.Forms.Platform.Android.FastRenderers.VisualElementRenderer");
static MethodInfo _viewExtensionsMethod = typeof(ImageRenderer).Assembly.GetType("Xamarin.Forms.Platform.Android.ViewExtensions").GetRuntimeMethod("EnsureId", new[] { typeof(Android.Views.View) });
static MethodInfo _viewExtensionsMethod = typeof(ImageRenderer).Assembly.GetType("Xamarin.Forms.Platform.Android.ViewExtensions")?.GetRuntimeMethod("EnsureId", new[] { typeof(Android.Views.View) });
bool _isDisposed;
CachedImage _element;
int? _defaultLabelFor;
Expand Down
3 changes: 2 additions & 1 deletion source/FFImageLoading.Forms.Droid/CachedImageRenderer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ public class CachedImageRenderer : ViewRenderer<CachedImage, CachedImageView>
{
#pragma warning disable 0219
var ignore1 = typeof(CachedImageRenderer);
var ignore2 = typeof(CachedImage);
var ignore2 = typeof(CachedImageFastRenderer);
var ignore3 = typeof(CachedImage);
#pragma warning restore 0219

var enabled = false;
Expand Down

0 comments on commit 6af79e4

Please sign in to comment.