photosgallery/viewframework/dataprovider/src/glxthumbnailvarianttype.cpp
branchRCL_3
changeset 11 71da52165949
parent 9 6b87b143d312
child 12 ce1c7ad1f18b
equal deleted inserted replaced
9:6b87b143d312 11:71da52165949
   159 	    GLX_DEBUG1("GlxThumbnailVariantType::CreateIconTextureL");
   159 	    GLX_DEBUG1("GlxThumbnailVariantType::CreateIconTextureL");
   160         TRAP( err, mTextureId = iUiUtility->GlxTextureManager().CreateIconTextureL( 
   160         TRAP( err, mTextureId = iUiUtility->GlxTextureManager().CreateIconTextureL( 
   161     	    icon.bitmapId, resFile, defaultSize ).Id() );
   161     	    icon.bitmapId, resFile, defaultSize ).Id() );
   162         }
   162         }
   163 	else if ( (KErrNone == thumbnailError) || (KErrArgument == thumbnailError) 
   163 	else if ( (KErrNone == thumbnailError) || (KErrArgument == thumbnailError) 
   164 		|| (KErrDiskFull == thumbnailError) || ( drm && isValid == EGlxDrmRightsInvalid ) )
   164         || (KErrDiskFull == thumbnailError) || (KErrNoMemory == thumbnailError) 
       
   165 		|| ( drm && isValid == EGlxDrmRightsInvalid ) )
   165 	    {
   166 	    {
   166 		//Try and see if we can scale and show the grid tnm else show the default
   167 		//Try and see if we can scale and show the grid tnm else show the default
   167 	    TBool isGridTnmShown = EFalse;		
   168 	    TBool isGridTnmShown = EFalse;		
   168 	    if(HasRelevantThumbnail(aMedia,defaultSize))
   169 	    if(HasRelevantThumbnail(aMedia,defaultSize))
   169 	        {
   170 	        {