OSDN Git Service

PENTAX一眼の制御時にライブビュー制御に固定する。
authorMRSa <mrsa@myad.jp>
Sat, 26 Jan 2019 13:22:38 +0000 (22:22 +0900)
committerMRSa <mrsa@myad.jp>
Sat, 26 Jan 2019 13:22:38 +0000 (22:22 +0900)
app/src/main/java/net/osdn/gokigen/a01d/camera/ricohgr2/wrapper/RicohGr2LiveViewControl.java

index 9ce83fd..87fc259 100644 (file)
@@ -48,7 +48,9 @@ public class RicohGr2LiveViewControl implements ILiveViewControl
         try
         {
             SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(context);
-            if (!(preferences.getBoolean(IPreferencePropertyAccessor.GR2_LIVE_VIEW, true)))
+            boolean mirrorMode = preferences.getBoolean(IPreferencePropertyAccessor.GR2_LIVE_VIEW, true);
+            boolean pentaxMode = preferences.getBoolean(IPreferencePropertyAccessor.USE_PENTAX_AUTOFOCUS, false);
+            if ((pentaxMode)||(!mirrorMode))
             {
                 liveViewUrl = "http://192.168.0.1/v1/liveview";
             }