Remove current ScrollBar indicator when setting new customed indicator
using SetScrollIndicator();
Change-Id: Id833be317eb312489bceeadfd1a2bceaf3dde629
Signed-off-by: minho.sun <minho.sun@samsung.com>
// Don't allow empty handle
if( indicator )
{
+ // Remove current Indicator
+ if( mIndicator )
+ {
+ Self().Remove( mIndicator );
+ }
mIndicator = indicator;
mIndicatorFirstShow = true;
- Self().Add(mIndicator);
+ Self().Add( mIndicator );
- EnableGestureDetection(Gesture::Type(Gesture::Pan));
+ EnableGestureDetection( Gesture::Type( Gesture::Pan ) );
PanGestureDetector detector( GetPanGestureDetector() );
detector.DetachAll();