[Tizen] Restore behavior of Uploaded and LoadingFinished signal
authorSunghyun kim <scholb.kim@samsung.com>
Mon, 2 Jul 2018 06:24:14 +0000 (15:24 +0900)
committerSunghyun kim <scholb.kim@samsung.com>
Mon, 2 Jul 2018 06:25:34 +0000 (15:25 +0900)
This reverts commit 23abd178559a1f5970fc8a3a39b71910b8528721.

Change-Id: I2912decbfbed5daea4e7cf79bb3de1217d35e2e5

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