Merge remote-tracking branch 'origin/master'

This commit is contained in:
Weblate 2017-07-24 13:41:51 +02:00
commit 97661050ef
2 changed files with 13 additions and 9 deletions

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()) {

View file

@ -240,10 +240,12 @@ public class LiveUpdatesFragment extends BaseOsmAndFragment implements InAppList
}
public void notifyLiveUpdatesChanged() {
if (adapter != null && getMyApplication() != null && getActivity() != null) {
if (getActivity() != null) {
if (adapter != null && getMyApplication() != null) {
adapter.notifyLiveUpdatesChanged();
}
}
}
@SuppressWarnings("deprecation")
@Override