minor log changes
This commit is contained in:
parent
145271bd7c
commit
ecb2dca285
|
@ -32,9 +32,9 @@ public class PhotoProcessor extends AsyncTask<byte[], Void, Void> {
|
|||
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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue