Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Too many pictures listed (not only subdirectories) #82

Closed
Zahnstocher opened this issue Apr 19, 2017 · 2 comments
Closed

Too many pictures listed (not only subdirectories) #82

Zahnstocher opened this issue Apr 19, 2017 · 2 comments

Comments

@Zahnstocher
Copy link

If a folder is selected, only its content and the content of the subdirectories should be shown.

For example, following directory structure:
/storage/emulated/0/files/
/storage/emulated/0/files/a/
/storage/emulated/0/files/b/
/storage/emulated/0/files2/

If /storage/emulated/0/files is picked, only the images in the following directories should be listed:
/storage/emulated/0/files/
/storage/emulated/0/files/a/
/storage/emulated/0/files/b/

But also the images inside /storage/emulated/0/files2/ are listed, which is not a subdirectory of /storage/emulated/0/files/

logcat shows:

k3bFoto: FotoGalleryActivity.navigateTo /storage/emulated/0/files from /storage/emulated/0

But addWhereDirectoryPath just appends a "%" at the end (a slash is missing?):

addWhere(FotoSql.SQL_COL_PATH + " like ?", selectedAbsolutePath + "%")

.addWhere(FotoSql.SQL_COL_PATH + " like ?", selectedAbsolutePath + "%")

I think it should be "/%" or something like that?
So that only subdirectories are selected?

Not sure, if I'm looking at the right code...

@k3b
Copy link
Owner

k3b commented Apr 25, 2017

the problem still exists in 0.6.0

@k3b
Copy link
Owner

k3b commented May 6, 2017

fix should be available in 0.6.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

2 participants