mpx/collectionframework/collectionengine/src/mpxcollectionengine.cpp
changeset 50 762d760dcfdf
parent 48 b7b49303d0c0
--- a/mpx/collectionframework/collectionengine/src/mpxcollectionengine.cpp	Fri Jul 23 17:48:16 2010 -0500
+++ b/mpx/collectionframework/collectionengine/src/mpxcollectionengine.cpp	Fri Aug 06 17:13:32 2010 -0500
@@ -212,12 +212,21 @@
             break;
             }
         case EMcMsgDiskInserted:        	
+            {
+            // inverting the notification order, this to get the message to 
+            // the UI faster.
             for( TInt i=0; i<count; ++i )
                 {
                 context = iContexts[i];
                 context->NotifyL( aMsg, aData );
                 }
             notify = EFalse;
+            command = EMcReOpenCollection;
+            data = aData;
+            // Clear the cache
+        	  clearCache = ETrue;
+            break;
+            }
         case EMcMsgFormatEnd:
         case EMcMsgUSBMassStorageEnd:
             {
@@ -225,7 +234,7 @@
             data = aData;
             
             // Clear the cache
-        	clearCache = ETrue;
+        	  clearCache = ETrue;
             break;
             }
         case EMcMsgUSBMTPStart: