SetBackground();
}
-void Indicator::SetVisible( Dali::Window::IndicatorVisibleMode visibleMode )
+void Indicator::SetVisible( Dali::Window::IndicatorVisibleMode visibleMode, bool forceUpdate )
{
- if ( visibleMode != mVisible )
+ if ( visibleMode != mVisible || forceUpdate )
{
// If we were previously hidden, then we should update the image data before we display the indicator
if ( mVisible == Dali::Window::INVISIBLE )
}
}
// show indicator when it is invisible
- else if( !mIsShowing && ( CheckVisibleState() == false || mVisible == Dali::Window::AUTO ) )
+ else if( !mIsShowing && ( CheckVisibleState() == false && mVisible == Dali::Window::AUTO ) )
{
switch( touchPoint.state )
{
// set default indicator type (disable the quick panel)
OnIndicatorTypeChanged( INDICATOR_TYPE_2 );
}
+
+ SetVisible(mVisible, true);
}
}
}
// set default indicator type (disable the quick panel)
OnIndicatorTypeChanged( INDICATOR_TYPE_2 );
}
+
+ SetVisible(mVisible, true);
}
}
}
{
unsigned char *src = mSharedFile->GetAddress();
size_t size = mImageWidth * mImageHeight * 4;
+
if( mIndicatorBuffer->UpdatePixels( src, size ) )
{
mAdaptor->RequestUpdateOnce();
/**
* Set whether the indicator is visible or not.
* @param[in] visibleMode visible mode for indicator bar.
+ * @param[in] forceUpdate true if want to change visible mode forcely
*/
- void SetVisible( Dali::Window::IndicatorVisibleMode visibleMode );
+ void SetVisible( Dali::Window::IndicatorVisibleMode visibleMode, bool forceUpdate = false );
/**
* Check whether the indicator is connected to the indicator service.