- fixed wrong project.properties
[pub/Android/ownCloud.git] / src / com / owncloud / android / operations / SynchronizeFileOperation.java
index 45a7305..6bc3321 100644 (file)
@@ -33,6 +33,7 @@ import com.owncloud.android.utils.FileStorageUtils;
 import android.accounts.Account;
 import android.content.Context;
 import android.content.Intent;
+import android.media.MediaScannerConnection;
 
 /**
  * Remote operation performing the read of remote file in the ownCloud server.
@@ -194,6 +195,12 @@ public class SynchronizeFileOperation extends SyncOperation {
             } 
 
         }
+        
+        // trigger MediaScan
+        MediaScannerConnection.scanFile(
+                null,
+                new String[]{mLocalFile.getStoragePath()},
+                null,null);
 
         Log_OC.i(TAG, "Synchronizing " + mAccount.name + ", file " + mLocalFile.getRemotePath() + ": " + result.getLogMessage());