Fix generateStorageDir when pathToDirectory is null

pull/30/head
ingrid 8 years ago
parent e08d71c427
commit c15571bc0b
  1. 2
      camerafragment/src/main/java/com/github/florent37/camerafragment/internal/utils/CameraHelper.java

@ -78,7 +78,7 @@ public final class CameraHelper {
if (pathToDirectory != null) {
mediaStorageDir = new File(pathToDirectory);
} else {
new File(Environment.getExternalStoragePublicDirectory(
mediaStorageDir = new File(Environment.getExternalStoragePublicDirectory(
Environment.DIRECTORY_PICTURES), context.getPackageName());
}

Loading…
Cancel
Save