[Tizen] Restore behavior of Uploaded and LoadingFinished signal
authorJoogab Yun <joogab.yun@samsung.com>
Mon, 27 Aug 2018 04:11:11 +0000 (13:11 +0900)
committerJoogab Yun <joogab.yun@samsung.com>
Mon, 27 Aug 2018 04:11:24 +0000 (13:11 +0900)
This reverts commit 1e34bb00de10cd4709e147a31f6b3effe8d23b21.

Change-Id: I4121b07c79732b8b81438d291b5ba982667f1a5b

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

index 6725bfb..7c0c31a 100755 (executable)
@@ -213,6 +213,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();