diff --git a/app/src/main/java/com/simplemobiletools/camera/PhotoProcessor.java b/app/src/main/java/com/simplemobiletools/camera/PhotoProcessor.java index 081cf864..d3ec7ff7 100644 --- a/app/src/main/java/com/simplemobiletools/camera/PhotoProcessor.java +++ b/app/src/main/java/com/simplemobiletools/camera/PhotoProcessor.java @@ -32,9 +32,9 @@ public class PhotoProcessor extends AsyncTask { fos.close(); Utils.scanFile(photoPath, mContext); } catch (FileNotFoundException e) { - Log.d(TAG, "onPictureTaken file not found: " + e.getMessage()); + Log.d(TAG, "PhotoProcessor file not found: " + e.getMessage()); } catch (IOException e) { - Log.e(TAG, "onPictureTaken ioexception " + e.getMessage()); + Log.e(TAG, "PhotoProcessor ioexception " + e.getMessage()); } return null; diff --git a/app/src/main/java/com/simplemobiletools/camera/Preview.java b/app/src/main/java/com/simplemobiletools/camera/Preview.java index 11ae9601..927fabe9 100644 --- a/app/src/main/java/com/simplemobiletools/camera/Preview.java +++ b/app/src/main/java/com/simplemobiletools/camera/Preview.java @@ -477,11 +477,11 @@ public class Preview extends ViewGroup implements SurfaceHolder.Callback, View.O camera.unlock(); try { recorder.start(); + isRecording = true; } catch (Exception e) { Utils.showToast(getContext(), R.string.video_setup_error); Log.e(TAG, "toggleRecording " + e.getMessage()); } - isRecording = true; } return isRecording; } @@ -494,6 +494,7 @@ public class Preview extends ViewGroup implements SurfaceHolder.Callback, View.O } catch (RuntimeException e) { new File(curVideoPath).delete(); Utils.showToast(getContext(), R.string.video_saving_error); + Log.e(TAG, "stopRecording " + e.getMessage()); } finally { recorder = null; }