mRetryState( false ),
mPermanentDelete( false ),
mWatcherHandle( NULL ),
- mRemoteSurface( NULL )
+ mRemoteSurface( NULL ),
+ mAborted( false )
{
}
mRetryState( false ),
mPermanentDelete( false ),
mWatcherHandle( NULL ),
- mRemoteSurface( NULL )
+ mRemoteSurface( NULL ),
+ mAborted( false )
{
}
if( visible )
{
- mLoadingText.SetProperty( Toolkit::TextLabel::Property::TEXT,
+ mLoadingText.SetProperty( Toolkit::TextLabel::Property::TEXT,
( mLoadingTextString.empty() )? GET_LOCALE_TEXT( "IDS_ST_POP_LOADING_ING" ) : mLoadingTextString );
}
mLoadingText.SetVisible( visible );
void WidgetView::ActivateFaultedWidget()
{
- if( mPid < 0 )
+ if( mPid < 0 || mAborted )
{
// Enable preview and loading text
ShowRetryState( false );
// launch widget again
mPid = widget_instance_launch( mInstanceId.c_str(), (char *)mContentInfo.c_str(), mWidth, mHeight );
- if( mPid < 0)
+
+ if( mPid < 0 || mAborted )
{
DALI_LOG_INFO( gWidgetViewLogging, Debug::Verbose, "WidgetView::ActivateFaultedWidget: widget_instance_launch is failed. [%s]\n", mWidgetId.c_str() );
ops.updated_cb = OnBufferUpdated;
ops.removed_cb = OnSurfaceRemoved;
ops.added_cb = OnBufferAdded;
- mWatcherHandle = screen_connector_toolkit_add(&ops, (char *)mInstanceId.c_str(), SCREEN_CONNECTOR_SCREEEN_TYPE_WIDGET, this);
+ mWatcherHandle = screen_connector_toolkit_add(&ops, (char *)mInstanceId.c_str(), SCREEN_CONNECTOR_SCREEEN_TYPE_WIDGET, this);
DALI_LOG_INFO( gWidgetViewLogging, Debug::Verbose, "WidgetView::ActivateFaultedWidget: widget_instance_launch is called. [%s, mPid = %d]\n", mWidgetId.c_str(), mPid );
}
RemoveWidgetImage();
break;
}
+ case WIDGET_INSTANCE_EVENT_CREATE_ABORTED:
+ {
+ mAborted = true;
+ mWidgetCreationAbortedSignal.Emit( handle );
+ break;
+ }
default:
{
break;