Merge pull request #4192 from osmandapp/fix_npe_5_line
Add check as in closeRecordingMenu()
This commit is contained in:
commit
d111833cce
1 changed files with 9 additions and 7 deletions
|
@ -862,6 +862,7 @@ public class AudioVideoNotesPlugin extends OsmandPlugin {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void initRecMenu(AVActionType actionType, double lat, double lon) {
|
private void initRecMenu(AVActionType actionType, double lat, double lon) {
|
||||||
|
if (mapActivity != null) {
|
||||||
currentRecording = new CurrentRecording(actionType);
|
currentRecording = new CurrentRecording(actionType);
|
||||||
if (actionType == AVActionType.REC_PHOTO) {
|
if (actionType == AVActionType.REC_PHOTO) {
|
||||||
recordingMenu = new AudioVideoNoteRecordingMenuFullScreen(this, lat, lon);
|
recordingMenu = new AudioVideoNoteRecordingMenuFullScreen(this, lat, lon);
|
||||||
|
@ -871,6 +872,7 @@ public class AudioVideoNotesPlugin extends OsmandPlugin {
|
||||||
recordingDone = false;
|
recordingDone = false;
|
||||||
lockScreenOrientation();
|
lockScreenOrientation();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public void recordVideo(final double lat, final double lon, final MapActivity mapActivity) {
|
public void recordVideo(final double lat, final double lon, final MapActivity mapActivity) {
|
||||||
if (AV_EXTERNAL_RECORDER.get()) {
|
if (AV_EXTERNAL_RECORDER.get()) {
|
||||||
|
|
Loading…
Reference in a new issue