--- a/videocollection/mpxmyvideoscollection/src/vcxmyvideoscategories.cpp Fri Apr 16 14:59:52 2010 +0300
+++ b/videocollection/mpxmyvideoscollection/src/vcxmyvideoscategories.cpp Mon May 03 12:32:50 2010 +0300
@@ -451,16 +451,8 @@
MPX_DEBUG1("CVcxMyVideosCategories:: video added");
if ( TVcxMyVideosCollectionUtil::FlagsL( aVideo ) & EVcxMyVideosVideoNew )
{
- TInt64 newItemsDate( 0 );
- if ( aVideo.IsSupported( KMPXMediaGeneralDate ) )
- {
- newItemsDate = aVideo.ValueTObjectL<TInt64>( KMPXMediaGeneralDate );
- }
- TInt64 prevNewDate( 0 );
- if ( aCategory.IsSupported( KMPXMediaGeneralDate ) )
- {
- prevNewDate = aCategory.ValueTObjectL<TInt64>( KMPXMediaGeneralDate );
- }
+ TInt64 newItemsDate = TVcxMyVideosCollectionUtil::CreationDateL( aVideo );
+ TInt64 prevNewDate = TVcxMyVideosCollectionUtil::CreationDateL( aCategory );
if ( static_cast<TInt64>(newItemsDate) > static_cast<TInt64>(prevNewDate) )
{