Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 53c76f49 authored by vince-bourgmayer's avatar vince-bourgmayer
Browse files

add filter on already store folder to prevent sync of hidden media folder (from local)

parent 8c9d0f28
Loading
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -524,6 +524,11 @@ public class ObserverService extends Service implements OnRemoteOperationListene
            SyncedFolder syncedFolder = iterator.next();
            Log.v(TAG, "SyncedFolder :"+syncedFolder.getLibelle()+", "+syncedFolder.getLocalFolder()+", "+syncedFolder.getLastModified()+", "+syncedFolder.isScanLocal()+", "+syncedFolder.getId() );

            if(syncedFolder.isMediaType() && CommonUtils.getFileNameFromPath(syncedFolder.getLocalFolder()).startsWith(".")){
                iterator.remove();
                continue;
            }

            if(syncedFolder.isScanLocal() ) {
                Log.v(TAG, "We must sync local modification of this folder");
                if ( syncedFolder.getId() == -1) {