Pictures: removed MediaScanner.

This commit is contained in:
Dennis Guse
2020-01-01 14:44:23 +01:00
parent 441d3f721f
commit c6d24e9534
4 changed files with 0 additions and 21 deletions
@@ -16,8 +16,6 @@
package de.dennisguse.opentracks.util;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Environment;
import androidx.documentfile.provider.DocumentFile;
@@ -109,13 +107,6 @@ public class FileUtils {
return fileName.substring(index + 1);
}
// TODO Make user configurable!
public static void updateMediaScanner(Context context, Uri uri) {
Intent mediaScanIntent = new Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE);
mediaScanIntent.setData(uri);
context.sendBroadcast(mediaScanIntent);
}
/**
* Builds a filename with the given base and the given extension, possibly adding a suffix to ensure the file doesn't exist.
*