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

Add setting to show/hide pictures in device gallery #67

Merged
merged 1 commit into from
Oct 6, 2017

Conversation

jeffsieu
Copy link
Contributor

@jeffsieu jeffsieu commented Oct 5, 2017

Fix #55

noMediaFile.delete();
context.sendBroadcast(new Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE, Uri.fromFile(new File(memeDirectory, ".nomedia"))));
File[] files = memeDirectory.listFiles();
for (int i = 0; i < files.length; i++) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe move this to a method addfilestomediastore(). And then both add/deletemediastore methods to an util class. Other than that I think it's quite nice. Does it work on your device?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I have tested it and it works. I've also tested it on an emulator.

@jeffsieu
Copy link
Contributor Author

jeffsieu commented Oct 6, 2017

@gsantner I have moved the MediaStore methods into utils/MediaStoreUtils, and modified my commit. So the pull request is at the same link here.

@gsantner
Copy link
Owner

gsantner commented Oct 6, 2017

thx!

@gsantner gsantner merged commit 2ecf858 into gsantner:master Oct 6, 2017
gsantner pushed a commit that referenced this pull request Oct 24, 2017
Add setting to show/hide pictures in device gallery, fixes #55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants