Skip to content

Commit 34e9419

Browse files
committed
改善
1 parent d3fb86b commit 34e9419

File tree

7 files changed

+15
-19
lines changed

7 files changed

+15
-19
lines changed

app/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,4 @@ android {
4646

4747
dependencies {
4848
compileOnly 'com.github.s1204IT:BenesseExtension:1.0.0'
49-
implementation 'androidx.annotation:annotation:1.9.1'
5049
}

app/libs/BenesseExtension.jar

-1.1 KB
Binary file not shown.

app/libs/StsExtension.jar

-1.49 KB
Binary file not shown.

app/src/main/java/me/s1204/benesse/touch/test/Tester.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@
1313
import android.widget.Spinner;
1414
import android.widget.Toast;
1515

16-
import androidx.annotation.NonNull;
17-
import androidx.annotation.Nullable;
18-
1916
import java.util.Arrays;
2017

2118
public class Tester extends Activity implements View.OnClickListener {
@@ -64,7 +61,7 @@ private void changeLayout(int layout, int btnId) {
6461
};
6562

6663
@Override
67-
public void onCreate(@Nullable Bundle savedInstanceState) {
64+
public void onCreate(Bundle savedInstanceState) {
6865
super.onCreate(savedInstanceState);
6966
setContentView(R.layout.layout);
7067
switch (Build.MODEL) {
@@ -84,7 +81,7 @@ public void onCreate(@Nullable Bundle savedInstanceState) {
8481
}
8582

8683
@Override
87-
public void onClick(@NonNull final View v) {
84+
public void onClick(final View v) {
8885
final int resId = v.getId();
8986
try {
9087
if (resId == R.id.backHome) {
@@ -176,8 +173,9 @@ public boolean onCreateOptionsMenu(Menu menu) {
176173
return true;
177174
}
178175

176+
/** @noinspection NullableProblems*/
179177
@Override
180-
public boolean onOptionsItemSelected(@NonNull MenuItem item) {
178+
public boolean onOptionsItemSelected(MenuItem item) {
181179
super.onOptionsItemSelected(item);
182180
int itemId = item.getItemId();
183181
if (itemId == R.id.menu_about) {

app/src/main/res/layout/about.xml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
android:layout_height="wrap_content"
3939
android:layout_marginTop="8dp"
4040
android:layout_marginBottom="8dp"
41-
android:text="Benesse が指定したパスワードと一致しているか確認する関数。\n/factory/dcha_hash が存在する場合、そちらがパスワードの比較対象として優先される。\n一致した場合は true を返し、再起動時に ADB が自動で無効になるフラグを無効にできる。\n尚、このフラグは putInt や、ADB から直接設定可能。"
41+
android:text="予め指定されているパスワードと一致するか確認する関数。\n/factory/dcha_hash が存在する場合、そちらがパスワードの比較対象として優先される。\n一致した場合は true を返し、再起動時に ADB が自動で無効になるフラグを無効にできる。\n尚、このフラグは putInt や、ADB から直接設定可能。"
4242
android:textColor="#000000"
4343
android:textSize="16sp" />
4444
</LinearLayout>
@@ -73,7 +73,7 @@
7373
android:layout_height="wrap_content"
7474
android:layout_marginTop="8dp"
7575
android:layout_marginBottom="8dp"
76-
android:text="USB にカメラが接続されているかどうかを真偽値で返します。\n/dev/video0 が存在するかどうかで判断します"
76+
android:text="USB にカメラが接続されているかどうかを真偽値で返す。\n/dev/video0 が存在するかどうかで判断する"
7777
android:textColor="#000000"
7878
android:textSize="16sp" />
7979
</LinearLayout>
@@ -108,7 +108,7 @@
108108
android:layout_height="wrap_content"
109109
android:layout_marginTop="8dp"
110110
android:layout_marginBottom="8dp"
111-
android:text="現在のディスプレイのサイズを [width, height] で返します"
111+
android:text="現在のディスプレイのサイズを [width, height] で返す"
112112
android:textColor="#000000"
113113
android:textSize="16sp" />
114114
</LinearLayout>
@@ -143,7 +143,7 @@
143143
android:layout_height="wrap_content"
144144
android:layout_marginTop="8dp"
145145
android:layout_marginBottom="8dp"
146-
android:text="System ネームスペースの dcha_state の値を返します"
146+
android:text="System ネームスペースの dcha_state の値を返す"
147147
android:textColor="#000000"
148148
android:textSize="16sp" />
149149
</LinearLayout>
@@ -178,7 +178,7 @@
178178
android:layout_height="wrap_content"
179179
android:layout_marginTop="8dp"
180180
android:layout_marginBottom="8dp"
181-
android:text="ディスプレイの物理的なサイズを [width, height] で返します"
181+
android:text="ディスプレイの物理的なサイズを [width, height] で返す"
182182
android:textColor="#000000"
183183
android:textSize="16sp" />
184184
</LinearLayout>
@@ -213,7 +213,7 @@
213213
android:layout_height="wrap_content"
214214
android:layout_marginTop="8dp"
215215
android:layout_marginBottom="8dp"
216-
android:text="特定変数の値を返します。\n・bc:compatscreen:画面サイズを変更\n  ・0: [1920, 1200]\n  ・1: [1024, 768]\n  ・2: [1280, 800]\n・bc:nightmode:active:読書灯の有効状態\n・bc:nightcolor:max:読書灯の最大の輝度\n・bc:nightcolor:min:読書灯の最低の輝度\n・bc:nightcolor:current:読書灯の現在の輝度\n・bc_password_hit:再起動時に ADB を自動で無効化するかどうかの判断に用いられる。\n・bc:pen:battery\n・bc:touchpanel:palmreject:size"
216+
android:text="特定変数の値を返す。\n・bc:compatscreen:画面サイズを変更\n  ・0[1920, 1200]\n  ・1[1024, 768]\n  ・2[1280, 800]\n・bc:nightmode:active:読書灯の有効状態 \n  ・0 :無効\n  ・1:有効\n・bc:nightcolor:max:読書灯の最大の輝度\n・bc:nightcolor:min:読書灯の最低の輝度\n・bc:nightcolor:current:読書灯の現在の輝度\n・bc_password_hit:端末起動時に ADB を自動で無効化するかどうか\n  ・1 以外:無効化\n  ・1:現在の状態を維持\n・bc:pen:battery:Next のペンの電池残量\n・bc:touchpanel:palmreject:size"
217217
android:textColor="#000000"
218218
android:textSize="16sp" />
219219
</LinearLayout>
@@ -248,7 +248,7 @@
248248
android:layout_height="wrap_content"
249249
android:layout_marginTop="8dp"
250250
android:layout_marginBottom="8dp"
251-
android:text="getInitialDisplaySize を呼び出します"
251+
android:text="getInitialDisplaySize を呼び出す"
252252
android:textColor="#000000"
253253
android:textSize="16sp" />
254254
</LinearLayout>
@@ -283,7 +283,7 @@
283283
android:layout_height="wrap_content"
284284
android:layout_marginTop="8dp"
285285
android:layout_marginBottom="8dp"
286-
android:text="特定変数の値を返します。\n・bc:mac_address:Wi-Fi の MAC アドレス\n・bc:serial_no:製造番号\n・bc:touchpanel:fw_version\n・bc:digitizer:fw_version\n・bc:touchpanel:nvt:fw_version\n・bc:touchpanel:fts:fw_version\n・bc:touchpanel:lcd_type"
286+
android:text="特定変数の値を返す。\n・bc:mac_address:Wi-Fi の MAC アドレス\n・bc:serial_no:製造番号\n・bc:touchpanel:fw_version\n・bc:digitizer:fw_version\n・bc:touchpanel:nvt:fw_version\n・bc:touchpanel:fts:fw_version\n・bc:touchpanel:lcd_type"
287287
android:textColor="#000000"
288288
android:textSize="16sp" />
289289
</LinearLayout>
@@ -318,7 +318,7 @@
318318
android:layout_height="wrap_content"
319319
android:layout_marginTop="8dp"
320320
android:layout_marginBottom="8dp"
321-
android:text="特定変数の値を設定します。\n・bc:compatscreen\n・bc:nightmode:active\n・bc:nightcolor:current\n・bc_password_hit\n・bc:touchpanel:palmreject:size"
321+
android:text="特定変数の値の設定または処理を実行。\n・bc:compatscreen\n・bc:nightmode:active\n・bc:nightcolor:current\n・bc_password_hit\n・bc:touchpanel:palmreject:size"
322322
android:textColor="#000000"
323323
android:textSize="16sp" />
324324
</LinearLayout>
@@ -423,7 +423,7 @@
423423
android:layout_height="wrap_content"
424424
android:layout_marginTop="8dp"
425425
android:layout_marginBottom="8dp"
426-
android:text="画面の解像度を強制的に設定します。\nこの関数を実行するアプリに、WRITE_SECURE_SETTINGS の権限の付与が必要です"
426+
android:text="画面の解像度を強制的に設定します。\nこの関数を実行するアプリに、WRITE_SECURE_SETTINGS の権限の付与が必要"
427427
android:textColor="#000000"
428428
android:textSize="16sp" />
429429
</LinearLayout>

gradle.properties

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
org.gradle.configuration-cache=true
2-
org.gradle.jvmargs=-Xmx4096m -Dfile.encoding=UTF-8
3-
android.useAndroidX=true
2+
org.gradle.jvmargs=-Xmx4096m -Dfile.encoding=UTF-8

response.xml

3.84 KB
Binary file not shown.

0 commit comments

Comments
 (0)