• R/O
  • HTTP
  • SSH
  • HTTPS

Gr2Control: Commit

Ricoh GR2 Control App for Android.


Commit MetaInfo

Revision881be0d231de44f2c98c07b496e07f2df173cfbe (tree)
Zeit2020-05-05 22:22:44
AutorMRSa <mrsa@myad...>
CommiterMRSa

Log Message

次バージョンの準備。(アイコン等整備)

Ändern Zusammenfassung

Diff

--- a/app/build.gradle
+++ b/app/build.gradle
@@ -6,8 +6,8 @@ android {
66 applicationId "net.osdn.gokigen.gr2control"
77 minSdkVersion 14
88 targetSdkVersion 29
9- versionCode 1003001
10- versionName "1.3.1"
9+ versionCode 1003002
10+ versionName "1.3.2"
1111 }
1212 buildTypes {
1313 release {
Binary files /dev/null and b/app/src/main/ic_launcher-playstore.png differ
--- a/app/src/main/java/net/osdn/gokigen/gr2control/preference/Gr2ControlPreferenceFragment.java
+++ b/app/src/main/java/net/osdn/gokigen/gr2control/preference/Gr2ControlPreferenceFragment.java
@@ -9,6 +9,7 @@ import android.util.Log;
99
1010 import net.osdn.gokigen.gr2control.R;
1111 import net.osdn.gokigen.gr2control.camera.ICameraConnection;
12+import net.osdn.gokigen.gr2control.camera.ricohgr2.operation.RicohGr2CameraPowerOff;
1213 import net.osdn.gokigen.gr2control.logcat.LogCatViewer;
1314 import net.osdn.gokigen.gr2control.scene.IChangeScene;
1415
@@ -26,6 +27,7 @@ import androidx.preference.PreferenceManager;
2627 public class Gr2ControlPreferenceFragment extends PreferenceFragmentCompat implements SharedPreferences.OnSharedPreferenceChangeListener, Preference.OnPreferenceClickListener
2728 {
2829 private final String TAG = toString();
30+ //private RicohGr2CameraPowerOff powerOffController = null;
2931 private IChangeScene changeScene = null;
3032 private AppCompatActivity context = null;
3133 private SharedPreferences preferences = null;
@@ -57,6 +59,9 @@ public class Gr2ControlPreferenceFragment extends PreferenceFragmentCompat impl
5759 {
5860 try
5961 {
62+ //powerOffController = new RicohGr2CameraPowerOff(context, changeScene);
63+ //powerOffController.prepare();
64+
6065 logCatViewer = new LogCatViewer(changeScene);
6166 logCatViewer.prepare();
6267 this.changeScene = changeScene;
@@ -237,6 +242,14 @@ public class Gr2ControlPreferenceFragment extends PreferenceFragmentCompat impl
237242 connectionMethod.setSummary(connectionMethod.getValue() + " ");
238243 }
239244
245+ /*
246+ Preference exitApplication = findPreference("exit_application");
247+ if (exitApplication != null)
248+ {
249+ exitApplication.setOnPreferenceClickListener(powerOffController);
250+ }
251+ */
252+
240253 Preference opcPreference = findPreference("opc_settings");
241254 if (opcPreference != null)
242255 {
--- /dev/null
+++ b/app/src/main/res/drawable/ic_launcher_foreground.xml
@@ -0,0 +1,19 @@
1+<vector xmlns:android="http://schemas.android.com/apk/res/android"
2+ android:width="108dp"
3+ android:height="108dp"
4+ android:viewportWidth="50.462574"
5+ android:viewportHeight="50.462574"
6+ android:tint="#EDEDED">
7+ <group android:translateX="13.231287"
8+ android:translateY="13.231287">
9+ <path
10+ android:fillColor="#FF000000"
11+ android:pathData="M12,14m-3.2,0a3.2,3.2 0,1 1,6.4 0a3.2,3.2 0,1 1,-6.4 0"/>
12+ <path
13+ android:fillColor="#FF000000"
14+ android:pathData="M16,3.33c2.58,0 4.67,2.09 4.67,4.67H22c0,-3.31 -2.69,-6 -6,-6v1.33M16,6c1.11,0 2,0.89 2,2h1.33c0,-1.84 -1.49,-3.33 -3.33,-3.33V6"/>
15+ <path
16+ android:fillColor="#FF000000"
17+ android:pathData="M17,9c0,-1.11 -0.89,-2 -2,-2L15,4L9,4L7.17,6L4,6c-1.1,0 -2,0.9 -2,2v12c0,1.1 0.9,2 2,2h16c1.1,0 2,-0.9 2,-2L22,9h-5zM12,19c-2.76,0 -5,-2.24 -5,-5s2.24,-5 5,-5 5,2.24 5,5 -2.24,5 -5,5z"/>
18+ </group>
19+</vector>
--- a/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
+++ b/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
@@ -1,5 +1,5 @@
11 <?xml version="1.0" encoding="utf-8"?>
22 <adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
3- <background android:drawable="@drawable/ic_launcher_background"/>
4- <foreground android:drawable="@mipmap/ic_launcher_foreground"/>
3+ <background android:drawable="@color/ic_launcher_background"/>
4+ <foreground android:drawable="@drawable/ic_launcher_foreground"/>
55 </adaptive-icon>
\ No newline at end of file
--- a/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
+++ b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
@@ -1,5 +1,5 @@
11 <?xml version="1.0" encoding="utf-8"?>
22 <adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
3- <background android:drawable="@drawable/ic_launcher_background"/>
4- <foreground android:drawable="@mipmap/ic_launcher_foreground"/>
3+ <background android:drawable="@color/ic_launcher_background"/>
4+ <foreground android:drawable="@drawable/ic_launcher_foreground"/>
55 </adaptive-icon>
\ No newline at end of file
Binary files a/app/src/main/res/mipmap-hdpi/ic_launcher.png and b/app/src/main/res/mipmap-hdpi/ic_launcher.png differ
Binary files a/app/src/main/res/mipmap-hdpi/ic_launcher_round.png and b/app/src/main/res/mipmap-hdpi/ic_launcher_round.png differ
Binary files a/app/src/main/res/mipmap-mdpi/ic_launcher.png and b/app/src/main/res/mipmap-mdpi/ic_launcher.png differ
Binary files a/app/src/main/res/mipmap-mdpi/ic_launcher_round.png and b/app/src/main/res/mipmap-mdpi/ic_launcher_round.png differ
Binary files a/app/src/main/res/mipmap-xhdpi/ic_launcher.png and b/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ
Binary files a/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png and b/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png differ
Binary files a/app/src/main/res/mipmap-xxhdpi/ic_launcher.png and b/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ
Binary files a/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png and b/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png differ
Binary files a/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png and b/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ
Binary files a/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png and b/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png differ
--- /dev/null
+++ b/app/src/main/res/values/ic_launcher_background.xml
@@ -0,0 +1,4 @@
1+<?xml version="1.0" encoding="utf-8"?>
2+<resources>
3+ <color name="ic_launcher_background">#26A69A</color>
4+</resources>
\ No newline at end of file
--- a/app/src/main/res/xml/preferences_summary.xml
+++ b/app/src/main/res/xml/preferences_summary.xml
@@ -2,7 +2,12 @@
22 <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" >
33 <PreferenceCategory
44 android:title="@string/pref_cat_application_control">
5-
5+/*
6+ <PreferenceScreen
7+ android:key="exit_application"
8+ android:icon="@drawable/ic_power_settings_new_black_24dp"
9+ android:title="@string/pref_exit_power_off" />
10+*/
611 <ListPreference
712 android:title="@string/pref_connection_method"
813 android:entryValues="@array/connection_method_value"
Show on old repository browser