use DCIM for saving media if set so

This commit is contained in:
tibbi 2016-08-29 15:16:54 +02:00
parent 2ec05220f4
commit ac1bd6d8d0
1 changed files with 4 additions and 0 deletions

View File

@ -67,6 +67,10 @@ public class Utils {
}
private static File getFolderName(Context context, boolean isPhoto) {
if (Config.newInstance(context).getUseDCIMFolder()) {
return Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM);
}
final Resources res = context.getResources();
String typeDirectory = res.getString(R.string.photo_directory);
if (!isPhoto) {