Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 57e84029 authored by Mark Harman's avatar Mark Harman
Browse files

Save debug csv files to application specific folder.

parent a8dfe557
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -264,7 +264,7 @@ public class HDRProcessor {

            if( MyDebug.LOG ) {
                // log samples to a CSV file
                File file = new File(Environment.getExternalStorageDirectory().getPath() + "/net.sourceforge.opencamera.hdr_samples_" + id + ".csv");
                File file = new File(context.getExternalFilesDir(null).getPath() + "/net.sourceforge.opencamera.hdr_samples_" + id + ".csv");
                if( file.exists() ) {
                    if( !file.delete() ) {
                        // keep FindBugs happy by checking return argument