OSDN Git Service

カメラとの切断機能を追加してみる。
[gokigen/FujiCam.git] / app / src / main / java / net / osdn / gokigen / cameratest / MainActivity.java
index 9f150a2..4265b7c 100644 (file)
@@ -168,18 +168,24 @@ public class MainActivity extends AppCompatActivity
             exitApplication();
             return (true);
         }
-/*
-        if (id == R.id.action_reset)
+        if (id == R.id.action_disconnect)
         {
-            testTarget.resetConnection();
+            testTarget.disconnect();
             return (true);
         }
-        //noinspection SimplifiableIfStatement
         if (id == R.id.action_settings)
         {
             testTarget.settings();
             return (true);
         }
+
+/*
+        if (id == R.id.action_reset)
+        {
+            testTarget.resetConnection();
+            return (true);
+        }
+        //noinspection SimplifiableIfStatement
         if (id == R.id.action_up_value)
         {
             testTarget.valueUp();