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

Commit e8995f60 authored by danielzhang130's avatar danielzhang130 Committed by Mohammed Althaf T
Browse files

skip hidden file in directory scan

parent bdd1e69e
Loading
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -965,7 +965,6 @@ public class StorageUtils {
        MEDIASTORE_VIDEOS
    }

    @SuppressLint("InlinedApi") // complains MediaColumns constants only available on API 29 (even though it was available on older versions, but looks like it was moved?); for some reason doesn't allow putting this at the actual comments?!
    private Media getLatestMediaCore(Uri baseUri, String bucket_id, UriType uri_type) {
        if( MyDebug.LOG ) {
            Log.d(TAG, "getLatestMediaCore");
@@ -1383,6 +1382,10 @@ public class StorageUtils {
                    }

                    String this_filename = cursor.getString(column_name_c);
                    if (this_filename != null && this_filename.length() > 0 && this_filename.charAt(0) == '.') {
                        // skip hidden file
                        continue;
                    }
                    /*if( MyDebug.LOG ) {
                        Log.d(TAG, "Date: " + this_date + " doc_id: " + doc_id + " Name: " + this_filename + " Uri: " + this_uri);
                    }*/