browserutilities/downloadmgr/DownloadMgrUiLib/Src/CDownloadMgrUiDownloadsList.cpp
--- a/browserutilities/downloadmgr/DownloadMgrUiLib/Src/CDownloadMgrUiDownloadsList.cpp Wed Apr 14 17:06:56 2010 +0300
+++ b/browserutilities/downloadmgr/DownloadMgrUiLib/Src/CDownloadMgrUiDownloadsList.cpp Tue Apr 27 17:46:17 2010 +0300
@@ -1255,9 +1255,14 @@
// First find the current download in the model.
TInt index(0);
TDownloadUiData* dlDataPtr = FindDlUiData( *iListModel, aDownload, index );
- if ( !dlDataPtr )
+ if ( !dlDataPtr || dlDataPtr->iDownloadState == EHttpDlCompleted )
{
- // do nothing
+ /*
+ For download completed do not update any thing in UI list.Download was small and may
+ have completed before you could recieve progress notification
+
+ do nothing
+ */
}
else
{
@@ -1429,7 +1434,7 @@
{
aDownload.GetStringAttribute( EDlAttrAlbumName, dlData.iName );
}
- else if (dlData.iProgressState == EHttpProgContentFileMovedAndDestFNChanged)
+ else if ( !(dlData.iProgressState == EHttpProgContentFileMoved) || dlData.iProgressState == EHttpProgContentFileMovedAndDestFNChanged)
// Filename changed, get the updated filename
{
CLOG_WRITE(" EHttpProgDlNameChanged");
@@ -1441,6 +1446,7 @@
if( dlData.iProgressState == EHttpProgContentFileMoved || dlData.iProgressState == EHttpProgContentFileMovedAndDestFNChanged )
{
+ aDownload.GetIntAttribute( EDlAttrDestRemovable, dlData.iExternalMemoryStatus );
HBufC8* contentType = iUiUtils->ContentTypeL( aDownload, ETrue, KFirstMoIndex );
if ( contentType->Length() > KMaxContentTypeLength )
{
@@ -2715,3 +2721,4 @@
/* End of file. */
+