From 12682aa06190ff7cc04af7f10f065c64a6c1c3c8 Mon Sep 17 00:00:00 2001 From: Alexey Kulish Date: Tue, 15 Dec 2015 17:38:42 +0300 Subject: [PATCH] Fix external photo --- .../net/osmand/plus/audionotes/AudioVideoNotesPlugin.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/audionotes/AudioVideoNotesPlugin.java b/OsmAnd/src/net/osmand/plus/audionotes/AudioVideoNotesPlugin.java index 89335a8243..8cde1521b3 100644 --- a/OsmAnd/src/net/osmand/plus/audionotes/AudioVideoNotesPlugin.java +++ b/OsmAnd/src/net/osmand/plus/audionotes/AudioVideoNotesPlugin.java @@ -1018,7 +1018,11 @@ public class AudioVideoNotesPlugin extends OsmandPlugin { public void takePhoto(final double lat, final double lon, final MapActivity mapActivity) { if (ActivityCompat.checkSelfPermission(mapActivity, Manifest.permission.CAMERA) == PackageManager.PERMISSION_GRANTED) { - takePhotoInternalOrExternal(lat, lon, mapActivity); + if (AV_EXTERNAL_PHOTO_CAM.get()) { + takePhotoExternal(lat, lon, mapActivity); + } else { + takePhotoInternalOrExternal(lat, lon, mapActivity); + } } else { actionLat = lat; actionLon = lon;