[Tizen] Restore behavior of Uploaded and LoadingFinished signal 49/175149/1
authorhuiyu.eun <huiyu.eun@samsung.com>
Mon, 9 Apr 2018 05:24:28 +0000 (14:24 +0900)
committerhuiyu.eun <huiyu.eun@samsung.com>
Mon, 9 Apr 2018 05:24:42 +0000 (14:24 +0900)
This reverts commit 5a599d401be545526f2659c3c24d2c321585524d.

Change-Id: Ia0ed3ddc58181b355052ba64f4424dea1d22d0ca
Signed-off-by: huiyu.eun <huiyu.eun@samsung.com>
dali-toolkit/internal/controls/image-view/image-view-impl.cpp
dali-toolkit/internal/controls/image-view/image-view-impl.h

index 9af610b..8bfa80d 100755 (executable)
@@ -207,6 +207,22 @@ void ImageView::SetDepthIndex( int depthIndex )
   }
 }
 
+void ImageView::OnStageConnection( int depth )
+{
+  if( mImage )
+  {
+    mImage.UploadedSignal().Emit( mImage );
+  }
+
+  Dali::ResourceImage resourceImage = Dali::ResourceImage::DownCast( mImage );
+  if( resourceImage )
+  {
+    resourceImage.LoadingFinishedSignal().Emit( resourceImage );
+  }
+
+  Control::OnStageConnection( depth ); // Enabled visuals will be put on stage
+}
+
 Vector3 ImageView::GetNaturalSize()
 {
   if( mVisual )
index 32867bf..75d5c49 100644 (file)
@@ -128,6 +128,11 @@ private: // From Control
   void OnInitialize();
 
   /**
+   * @copydoc CustomActorImpl::OnStageConnection()
+   */
+  virtual void OnStageConnection( int depth );
+
+  /**
    * @copydoc Toolkit::Control::GetNaturalSize
    */
   virtual Vector3 GetNaturalSize();