変数名を型が分かるようにさらにさらにさらに一部変更しました。

This commit is contained in:
Ekamo-11 2024-07-05 11:56:09 +09:00
parent 55f5033fc6
commit 2bb1587668

View File

@ -88,9 +88,9 @@ public class SetUpActivity extends FragmentActivity
buttonEndTimeButton = findViewById(R.id.endTimeSetButton); //終了時刻を設定するボタン buttonEndTimeButton = findViewById(R.id.endTimeSetButton); //終了時刻を設定するボタン
textViewEndTime = findViewById(R.id.endTime); //終了時刻を出力するTextView textViewEndTime = findViewById(R.id.endTime); //終了時刻を出力するTextView
RadioButton setTenMinute = findViewById(R.id.tenMinute); //訪問間隔10分 RadioButton radioButtonTenMinute = findViewById(R.id.tenMinute); //訪問間隔10分
RadioButton setFifteenMinute = findViewById(R.id.fifteenMinute); //訪問間隔15分 RadioButton radioButtonFifteenMinute = findViewById(R.id.fifteenMinute); //訪問間隔15分
RadioButton setThirtyMinute = findViewById(R.id.thirtyMinute); //訪問間隔30分 RadioButton radioButtonThirtyMinute = findViewById(R.id.thirtyMinute); //訪問間隔30分
textViewStartBreakTime = findViewById(R.id.startBreakTime); //休憩開始時刻 textViewStartBreakTime = findViewById(R.id.startBreakTime); //休憩開始時刻
textViewStartBreakTime.setPaintFlags(Paint.UNDERLINE_TEXT_FLAG); textViewStartBreakTime.setPaintFlags(Paint.UNDERLINE_TEXT_FLAG);
@ -119,11 +119,11 @@ public class SetUpActivity extends FragmentActivity
Log.d(TAG, "Third Day:" + thirdDay); Log.d(TAG, "Third Day:" + thirdDay);
Log.d(TAG, "Start Time" + startTime); Log.d(TAG, "Start Time" + startTime);
Log.d(TAG, "End Time" + endTime); Log.d(TAG, "End Time" + endTime);
if (setTenMinute.isChecked()){ //ラジオボタンの状態を取得 if (radioButtonTenMinute.isChecked()){ //ラジオボタンの状態を取得
intervalTime = "10"; intervalTime = "10";
} else if (setFifteenMinute.isChecked()) { } else if (radioButtonFifteenMinute.isChecked()) {
intervalTime = "15"; intervalTime = "15";
} else if (setThirtyMinute.isChecked()) { } else if (radioButtonThirtyMinute.isChecked()) {
intervalTime = "30"; intervalTime = "30";
} else { } else {
intervalTime = "0"; intervalTime = "0";
@ -226,9 +226,9 @@ public class SetUpActivity extends FragmentActivity
reset.setOnClickListener(v -> { //テキストとラジオボタンの選択を消去 reset.setOnClickListener(v -> { //テキストとラジオボタンの選択を消去
textViewTeacherName.setText(""); textViewTeacherName.setText("");
textViewStartPoint.setText(""); textViewStartPoint.setText("");
setTenMinute.setChecked(false); radioButtonTenMinute.setChecked(false);
setFifteenMinute.setChecked(false); radioButtonFifteenMinute.setChecked(false);
setThirtyMinute.setChecked(false); radioButtonThirtyMinute.setChecked(false);
textViewStartBreakTime.setText(""); textViewStartBreakTime.setText("");
textViewEndBreakTime.setText(""); textViewEndBreakTime.setText("");
textViewTotalStudent.setText(""); textViewTotalStudent.setText("");