Skip to content

Commit

Permalink
fix(store): add a public storage path
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelje authored and Hector Rondon committed May 2, 2018
1 parent 56cffb1 commit 23b50f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inventory/src/main/java/org/flyve/inventory/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -290,8 +290,8 @@ private static boolean isExternalStorageWritable() {
* @param message the message
* @param filename name of the file
*/
public static void storeFile(Context context, String message, String filename) {
String path = context.getCacheDir().getAbsolutePath();
public static void storeFile(String message, String filename) {
String path = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS).getAbsolutePath();
File dir = new File(path);

String state = Environment.getExternalStorageState();
Expand Down

0 comments on commit 23b50f5

Please sign in to comment.