I've made a lot of improvements and have added quite a few new features (skin and filters plus a new filter) but I have run into a snag that I want your thoughts on. Perhaps this goes esp to jGromit but anyone else is by all means welcome.
Old way: if the album has three directories and the first one has a subdirectory which has a subdirectory it would show something like:
Pet Photos | 1 folder
And then under that directory it would show also that there's a subdirectory. But then I thought: what if there are no images in the end? That's rather silly to show that there are directories if they're empty.
So the obvious solution was to recurse and if no images found don't include them like:
int numTotalImages = JAlbumUtilities.countCategories(ao,true).getCount(Category.image);
if (numTotalImages == 0) continue;
But since it's one directory at a time it might happen that the parent directory already found two directories and so it listed them even though one has no images.
I can think of some ways to resolve this but maybe there's a preferred method with jAlbum and that's what I'm after. To give you an idea this is from lines 77 through 140 in the attached index.htt.
Is there a preferred jAlbum method for this? Maybe there's even a reason to include empty directories? I don't know why there would be but it would also make it simpler. Then again it might even be that i'm not thinking of a much simpler solution and if I take a break and look at it again it'll be very obvious. I could believe that too.