OSDN Git Service

やっぱり、OPCのSDKを入れてOlympus Airでも使えるようにする。
[gokigen/Gr2Control.git] / app / src / main / java / net / osdn / gokigen / gr2control / Gr2ControlMain.java
index 6a7a55f..b91691b 100644 (file)
@@ -93,7 +93,7 @@ public class Gr2ControlMain extends AppCompatActivity
         super.onPause();
         try
         {
-            ICameraConnection connection = getCameraConnection(interfaceProvider.getCammeraConnectionMethod());
+            ICameraConnection connection = interfaceProvider.getCameraConnection();
             if (connection != null)
             {
                 connection.stopWatchWifiStatus(this);
@@ -154,31 +154,4 @@ public class Gr2ControlMain extends AppCompatActivity
             e.printStackTrace();
         }
     }
-
-    /**
-     *
-     *
-     *
-     */
-    private ICameraConnection getCameraConnection(ICameraConnection.CameraConnectionMethod connectionMethod)
-    {
-        Log.v(TAG, "getCameraConnection() : " + connectionMethod);
-        return (interfaceProvider.getRicohGr2Infterface().getRicohGr2CameraConnection());
-/*
-        ICameraConnection connection;
-        if (connectionMethod == ICameraConnection.CameraConnectionMethod.RICOH_GR2)
-        {
-            connection = interfaceProvider.getRicohGr2Infterface().getRicohGr2CameraConnection();
-        }
-        else if  (connectionMethod == ICameraConnection.CameraConnectionMethod.SONY)
-        {
-            connection = interfaceProvider.getSonyInterface().getSonyCameraConnection();
-        }
-        else // if (connectionMethod == ICameraConnection.CameraConnectionMethod.OPC)
-        {
-            connection = interfaceProvider.getOlympusInterface().getOlyCameraConnection();
-        }
-        return (connection);
-*/
-    }
 }