mirror of https://github.com/moparisthebest/k-9
16 lines
357 B
Java
16 lines
357 B
Java
package com.fsck.k9.helper;
|
|
|
|
|
|
import java.io.File;
|
|
|
|
import android.content.Context;
|
|
import android.media.MediaScannerConnection;
|
|
|
|
|
|
public class MediaScannerNotifier {
|
|
public static void notify(Context context, File file) {
|
|
String[] paths = { file.getAbsolutePath() };
|
|
MediaScannerConnection.scanFile(context, paths, null, null);
|
|
}
|
|
}
|