(Indicator) Ensure indicator is updated if it is shown after being hidden. 63/19963/1
authorAdeel Kazmi <adeel.kazmi@samsung.com>
Thu, 17 Apr 2014 15:33:13 +0000 (16:33 +0100)
committerAndrew Cox <andrew.cox@partner.samsung.com>
Wed, 23 Apr 2014 19:02:20 +0000 (20:02 +0100)
[Problem]  We get an indicator update when the indicator visibility is set to false so we ignore
           it. When it is then set back to true, we have the old data showing.
[Cause]    We do not update the data when we show the indicator again.
[Solution] Update the data when we show the indicator again.

Change-Id: Idea3dac96a305643a047466f334aacac5203b138
Signed-off-by: Adeel Kazmi <adeel.kazmi@samsung.com>
adaptors/tizen/internal/common/indicator-impl.cpp

index 7dba5b9..aaf634d 100644 (file)
@@ -470,7 +470,16 @@ void Indicator::SetOpacityMode( Dali::Window::IndicatorBgOpacity mode, bool noti
 
 void Indicator::SetVisible( bool visibility )
 {
-  mVisible = visibility;
+  if ( visibility != mVisible )
+  {
+    mVisible = visibility;
+
+    // If we were previously hidden, then we should update the image data before we display the indicator
+    if ( mVisible )
+    {
+      UpdateImageData();
+    }
+  }
 }
 
 bool Indicator::IsConnected()