• R/O
  • HTTP
  • SSH
  • HTTPS

A01c: Commit

OPC(Olympus Air)用撮影アプリ。


Commit MetaInfo

Revisãofbd31a37a59b70f0b23cb46f9e93cbf38203ced3 (tree)
Hora2017-04-26 00:25:16
AutorMRSa <mrsa@myad...>
CommiterMRSa

Mensagem de Log

起動時にグリッド線のON/OFFアイコンを更新。
その他微修正。

Mudança Sumário

Diff

--- a/wear/src/main/java/jp/sfjp/gokigen/a01c/MainActivity.java
+++ b/wear/src/main/java/jp/sfjp/gokigen/a01c/MainActivity.java
@@ -1,5 +1,6 @@
11 package jp.sfjp.gokigen.a01c;
22
3+import android.content.SharedPreferences;
34 import android.graphics.Color;
45 import android.os.Bundle;
56 import android.os.Vibrator;
@@ -90,6 +91,7 @@ public class MainActivity extends WearableActivity implements IChangeScene, ISh
9091 vibrator = (Vibrator) getSystemService(VIBRATOR_SERVICE);
9192
9293 setupCameraCoordinator();
94+ setupInitialButtonIcons();
9395 setupActionListener();
9496 }
9597
@@ -227,6 +229,31 @@ public class MainActivity extends WearableActivity implements IChangeScene, ISh
227229 }
228230
229231 /**
232+ * ボタンアイコンの初期設定
233+ *
234+ */
235+ private void setupInitialButtonIcons()
236+ {
237+ if (coordinator != null)
238+ {
239+ int resId;
240+ SharedPreferences preferences = android.support.v7.preference.PreferenceManager.getDefaultSharedPreferences(this);
241+ if (preferences.getBoolean(ICameraPropertyAccessor.SHOW_GRID_STATUS, true))
242+ {
243+ // ボタンをGrid OFFアイコンにする
244+ resId = R.drawable.btn_ic_grid_off;
245+ }
246+ else
247+ {
248+ // ボタンをGrid ONアイコンにする
249+ resId = R.drawable.btn_ic_grid_on;
250+ }
251+ setButtonDrawable(IShowInformation.BUTTON_1, resId);
252+ }
253+ }
254+
255+
256+ /**
230257 * Olympus Cameraクラスとのやりとりをするクラスを準備する
231258 * (カメラとの接続も、ここでスレッドを起こして開始する)
232259 */
--- a/wear/src/main/java/jp/sfjp/gokigen/a01c/liveview/CameraLiveImageView.java
+++ b/wear/src/main/java/jp/sfjp/gokigen/a01c/liveview/CameraLiveImageView.java
@@ -578,7 +578,7 @@ public class CameraLiveImageView extends View implements CameraLiveViewListenerI
578578 int centerX = width / 2;
579579 int centerY = height / 2;
580580
581- float maxBandWidth = width / 3.0f; // ゲージの最大長 (画面の 1/3 ぐらい)
581+ //float maxBandWidth = width / 3.0f; // ゲージの最大長 (画面の 1/3 ぐらい)
582582 float maxBandHeight = height / 3.0f; // ゲージの最大長 (画面の 1/3 ぐらい)
583583 int barWidthInitial = 4; // 表示するゲージの幅(の初期値)
584584 int barWidth; // 実際に表示するゲージの幅
--- a/wear/src/main/java/jp/sfjp/gokigen/a01c/liveview/gridframe/GridFrameDrawer0.java
+++ b/wear/src/main/java/jp/sfjp/gokigen/a01c/liveview/gridframe/GridFrameDrawer0.java
@@ -30,6 +30,6 @@ class GridFrameDrawer0 implements IGridFrameDrawer
3030 @Override
3131 public int getDrawColor()
3232 {
33- return (Color.argb(210,245,245,245));
33+ return (Color.argb(230,245,245,245));
3434 }
3535 }
--- a/wear/src/main/java/jp/sfjp/gokigen/a01c/olycamerawrapper/dispatcher/FeatureDispatcher.java
+++ b/wear/src/main/java/jp/sfjp/gokigen/a01c/olycamerawrapper/dispatcher/FeatureDispatcher.java
@@ -207,7 +207,7 @@ public class FeatureDispatcher implements ICameraFeatureDispatcher
207207 /*
208208 try
209209 {
210- // 実験... WIFIステート
210+ // 実験... WIFIステート設定画面を開く
211211 //Intent intent = new Intent(ACTION_ADD_NETWORK_SETTINGS);
212212 Intent intent = new Intent(ACTION_NETWORK_SETTINGS);
213213 context.startActivity(intent);
Show on old repository browser