[Tizen] Restore behavior of Uploaded and LoadingFinished signal
authorWonsik Jung <sidein@samsung.com>
Mon, 11 Jun 2018 06:22:39 +0000 (15:22 +0900)
committerWonsik Jung <sidein@samsung.com>
Mon, 11 Jun 2018 06:26:12 +0000 (15:26 +0900)
This reverts commit 558ff214168dc152f124998ce53eb3a338c9d34a.

Change-Id: If6be28dcf1195f7c4f36d9a568137666d623bc5f

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();