Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
97661050ef
2 changed files with 13 additions and 9 deletions
|
@ -862,14 +862,16 @@ public class AudioVideoNotesPlugin extends OsmandPlugin {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void initRecMenu(AVActionType actionType, double lat, double lon) {
|
private void initRecMenu(AVActionType actionType, double lat, double lon) {
|
||||||
currentRecording = new CurrentRecording(actionType);
|
if (mapActivity != null) {
|
||||||
if (actionType == AVActionType.REC_PHOTO) {
|
currentRecording = new CurrentRecording(actionType);
|
||||||
recordingMenu = new AudioVideoNoteRecordingMenuFullScreen(this, lat, lon);
|
if (actionType == AVActionType.REC_PHOTO) {
|
||||||
} else {
|
recordingMenu = new AudioVideoNoteRecordingMenuFullScreen(this, lat, lon);
|
||||||
recordingMenu = new AudioVideoNoteRecordingMenu(this, lat, lon);
|
} else {
|
||||||
|
recordingMenu = new AudioVideoNoteRecordingMenu(this, lat, lon);
|
||||||
|
}
|
||||||
|
recordingDone = false;
|
||||||
|
lockScreenOrientation();
|
||||||
}
|
}
|
||||||
recordingDone = false;
|
|
||||||
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) {
|
||||||
|
|
|
@ -240,8 +240,10 @@ public class LiveUpdatesFragment extends BaseOsmAndFragment implements InAppList
|
||||||
}
|
}
|
||||||
|
|
||||||
public void notifyLiveUpdatesChanged() {
|
public void notifyLiveUpdatesChanged() {
|
||||||
if (adapter != null && getMyApplication() != null && getActivity() != null) {
|
if (getActivity() != null) {
|
||||||
adapter.notifyLiveUpdatesChanged();
|
if (adapter != null && getMyApplication() != null) {
|
||||||
|
adapter.notifyLiveUpdatesChanged();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue