diff --git a/OsmAnd/assets/bundled_assets.xml b/OsmAnd/assets/bundled_assets.xml
index 9fd80ed770..a3e3c94eb6 100755
--- a/OsmAnd/assets/bundled_assets.xml
+++ b/OsmAnd/assets/bundled_assets.xml
@@ -33,5 +33,5 @@
-
+
diff --git a/OsmAnd/res/values-ru/strings.xml b/OsmAnd/res/values-ru/strings.xml
index 4b0497ed0d..c03c04d8a5 100644
--- a/OsmAnd/res/values-ru/strings.xml
+++ b/OsmAnd/res/values-ru/strings.xml
@@ -1202,7 +1202,7 @@
Режим фокусировки камеры
Режим фокусировки для встроенного приложения фотографирования
Автоматический фокус
- Гиперфокальное (если поддерживается)
+ Гиперфокальное или фиксированное
Увеличенная глубина резкозти (EDOF)
Фокус на бесконечность
Макро-режим
diff --git a/OsmAnd/src/net/osmand/plus/audionotes/SettingsAudioVideoActivity.java b/OsmAnd/src/net/osmand/plus/audionotes/SettingsAudioVideoActivity.java
index ccb5a69cdc..6c49259f8d 100644
--- a/OsmAnd/src/net/osmand/plus/audionotes/SettingsAudioVideoActivity.java
+++ b/OsmAnd/src/net/osmand/plus/audionotes/SettingsAudioVideoActivity.java
@@ -1,7 +1,5 @@
package net.osmand.plus.audionotes;
-
-
import static net.osmand.plus.audionotes.AudioVideoNotesPlugin.AV_DEFAULT_ACTION_AUDIO;
import static net.osmand.plus.audionotes.AudioVideoNotesPlugin.AV_DEFAULT_ACTION_CHOOSE;
import static net.osmand.plus.audionotes.AudioVideoNotesPlugin.AV_DEFAULT_ACTION_TAKEPICTURE;
@@ -16,15 +14,21 @@ import static net.osmand.plus.audionotes.AudioVideoNotesPlugin.AV_CAMERA_FOCUS_I
import static net.osmand.plus.audionotes.AudioVideoNotesPlugin.AV_CAMERA_FOCUS_MACRO;
import static net.osmand.plus.audionotes.AudioVideoNotesPlugin.AV_CAMERA_FOCUS_CONTINUOUS;
////
+import org.apache.commons.logging.Log;
+import net.osmand.PlatformUtil;
+import java.util.List;
+import java.util.ArrayList;
+import android.hardware.Camera.Parameters;
+import android.hardware.Camera;
import net.osmand.plus.OsmandPlugin;
import net.osmand.plus.R;
import net.osmand.plus.activities.SettingsBaseActivity;
import android.os.Bundle;
import android.preference.ListPreference;
import android.preference.PreferenceScreen;
-import android.util.Log;
public class SettingsAudioVideoActivity extends SettingsBaseActivity {
+ private static final Log log = PlatformUtil.getLog(AudioVideoNotesPlugin.class);
@Override
public void onCreate(Bundle savedInstanceState) {
@@ -48,28 +52,55 @@ public class SettingsAudioVideoActivity extends SettingsBaseActivity {
grp.addPreference(createCheckBoxPreference(p.AV_EXTERNAL_PHOTO_CAM, R.string.av_use_external_camera,
R.string.av_use_external_camera_descr));
// focus mode settings:
- entries = new String[] {
- getString(R.string.av_camera_focus_auto),
- getString(R.string.av_camera_focus_hiperfocal),
- getString(R.string.av_camera_focus_edof),
- getString(R.string.av_camera_focus_infinity),
- getString(R.string.av_camera_focus_macro),
- getString(R.string.av_camera_focus_continuous)
- };
- intValues = new Integer[] {
- AV_CAMERA_FOCUS_AUTO,
- AV_CAMERA_FOCUS_HIPERFOCAL,
- AV_CAMERA_FOCUS_EDOF,
- AV_CAMERA_FOCUS_INFINITY,
- AV_CAMERA_FOCUS_MACRO,
- AV_CAMERA_FOCUS_CONTINUOUS
- };
+ // show in menu only suppoted modes:
+ final Camera cam = openCamera();
+ Parameters parameters = cam.getParameters();
+ List sfm=parameters.getSupportedFocusModes ();
+ List items=new ArrayList ();
+ List itemsValues=new ArrayList ();
+ // filtering known types for translate and set index:
+ for(int index=0;index