Skip to content
This repository has been archived by the owner on Nov 10, 2021. It is now read-only.

Commit

Permalink
Bug fix: getExternalFilesDir not found
Browse files Browse the repository at this point in the history
  • Loading branch information
elyas139 authored Sep 2, 2019
1 parent f4967c5 commit 6b83ef5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crisp-sdk/src/main/java/im/crisp/sdk/ui/CrispFragment.java
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ private File createImageFile() throws IOException {
// Create an image file name
String timeStamp = new SimpleDateFormat("yyyyMMdd_HHmmss").format(new Date());
String imageFileName = "JPEG_" + timeStamp + "_";
File storageDir = Environment.getExternalFilesDir(
File storageDir = getContext().getExternalFilesDir(
Environment.DIRECTORY_PICTURES);
File imageFile = File.createTempFile(
imageFileName, /* prefix */
Expand Down

0 comments on commit 6b83ef5

Please sign in to comment.