[Tizen] Restore behavior of Uploaded and LoadingFinished signal 12/182312/1
authorminho.sun <minho.sun@samsung.com>
Fri, 22 Jun 2018 01:29:52 +0000 (10:29 +0900)
committerminho.sun <minho.sun@samsung.com>
Fri, 22 Jun 2018 01:29:55 +0000 (10:29 +0900)
This reverts commit 8c738f7553606299c39ef8c53e0c1f6bd29f5b65.

Change-Id: Iba5a229e80e60e28f1f23dd9a0f018b0045f4694

dali-toolkit/internal/controls/image-view/image-view-impl.cpp
dali-toolkit/internal/controls/image-view/image-view-impl.h

index 20869d3..e4d3677 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();