mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-06-05 21:59:19 +02:00
calculate the size of directories
+ adding some initial sorting things
This commit is contained in:
@ -210,9 +210,10 @@ public class MainActivity extends SimpleActivity
|
||||
final Directory directory = directories.get(fileDir);
|
||||
final int newImageCnt = directory.getMediaCnt() + 1;
|
||||
directory.setMediaCnt(newImageCnt);
|
||||
directory.addSize(file.length());
|
||||
} else if (!mToBeDeleted.contains(fileDir)) {
|
||||
final String dirName = Utils.getFilename(fileDir);
|
||||
directories.put(fileDir, new Directory(fileDir, path, dirName, 1, timestamp));
|
||||
directories.put(fileDir, new Directory(fileDir, path, dirName, 1, timestamp, file.length()));
|
||||
}
|
||||
} while (cursor.moveToNext());
|
||||
cursor.close();
|
||||
|
Reference in New Issue
Block a user