Merge pull request #30 from Dirgningrid/dirgningrid/FixGenerateStorageDir

Fix generateStorageDir when pathToDirectory is null
pull/36/head
Florent CHAMPIGNY 8 years ago committed by GitHub
commit f129b8e8f9
  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