Add check as in closeRecordingMenu()

This commit is contained in:
Alexander Sytnyk 2017-07-24 13:08:07 +03:00
parent 65435f6658
commit 29fcb98205

View file

@ -862,6 +862,7 @@ public class AudioVideoNotesPlugin extends OsmandPlugin {
}
private void initRecMenu(AVActionType actionType, double lat, double lon) {
if (mapActivity != null) {
currentRecording = new CurrentRecording(actionType);
if (actionType == AVActionType.REC_PHOTO) {
recordingMenu = new AudioVideoNoteRecordingMenuFullScreen(this, lat, lon);
@ -871,6 +872,7 @@ public class AudioVideoNotesPlugin extends OsmandPlugin {
recordingDone = false;
lockScreenOrientation();
}
}
public void recordVideo(final double lat, final double lon, final MapActivity mapActivity) {
if (AV_EXTERNAL_RECORDER.get()) {