mRotation( 0 ),
mImageWidth( 0 ),
mImageHeight( 0 ),
- mVisible( Dali::Window::VISIBLE ),
+ mVisible( Dali::Window::INVISIBLE ),
mIsShowing( true ),
mIsAnimationPlaying( false )
{
{
AccessibilityManager::GetImplementation( accessibilityManager ).SetIndicator( this );
}
+ // hide the indicator by default
+ mIndicatorActor.SetVisible( false );
}
Indicator::~Indicator()
{
UpdateImageData();
}
+ if ( visibleMode != Dali::Window::INVISIBLE )
+ {
+ mIndicatorActor.SetVisible( true );
+ }
mVisible = visibleMode;
if( mVisible == Dali::Window::AUTO )
{
- // check the stage touch
- Dali::Stage::GetCurrent().TouchedSignal().Connect( this, &Indicator::OnStageTouched );
+ // check the stage touch
+ Dali::Stage::GetCurrent().TouchedSignal().Connect( this, &Indicator::OnStageTouched );
}
}
else
if( mVisible == Dali::Window::AUTO )
{
- // check the stage touch
- Dali::Stage::GetCurrent().TouchedSignal().Disconnect( this, &Indicator::OnStageTouched );
+ // check the stage touch
+ Dali::Stage::GetCurrent().TouchedSignal().Disconnect( this, &Indicator::OnStageTouched );
}
}
}
void Indicator::OnAnimationFinished(Dali::Animation& animation)
{
mIsAnimationPlaying = false;
+ // once animation is finished and indicator is hidden, take it off stage
+ if( !mIsShowing )
+ {
+ mIndicatorActor.SetVisible( false );
+ }
}
void Indicator::OnPan( Dali::Actor actor, const Dali::PanGesture& gesture )
Window::Window()
: mSurface(NULL),
mIndicatorStyle(Dali::Window::CHANGEABLE_COLOR),
- mIndicatorVisible(Dali::Window::VISIBLE),
+ mIndicatorVisible(Dali::Window::INVISIBLE),
mIndicatorIsShown(false),
mShowRotatedIndicatorOnClose(false),
mStarted(false),
void Window::OnStart()
{
- DoShowIndicator( mIndicatorOrientation );
+ ShowIndicator( mIndicatorVisible );
}
void Window::OnPause()