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