[ElmSharp] Fix Image.ImageObject refresh issue 44/152444/3
authorSeungkeun Lee <sngn.lee@samsung.com>
Tue, 26 Sep 2017 07:05:02 +0000 (16:05 +0900)
committerSeungkeun Lee <sngn.lee@samsung.com>
Tue, 26 Sep 2017 07:23:30 +0000 (16:23 +0900)
 - When Image source was updated, ImageObject was not updated to the new one
 - Add Delete event handler on ImageObject and It was deleted make invalidate the cached object

Change-Id: I266bd685c5248c2a490eb12f65aaeda26faaa88b

src/ElmSharp/ElmSharp/Image.cs [changed mode: 0755->0644]

old mode 100755 (executable)
new mode 100644 (file)
index 3f1bc1c..a6a499d
@@ -345,7 +345,10 @@ namespace ElmSharp
                 {
                     IntPtr evasObj = Interop.Elementary.elm_image_object_get(RealHandle);
                     if (evasObj != IntPtr.Zero)
+                    {
                         _imageObject = new EvasImage(this, evasObj);
+                        _imageObject.Deleted += (s, e) => _imageObject = null;
+                    }
                 }
                 return _imageObject;
             }