diff --git a/app/src/main/java/com/example/citrusclient/views/AccountColorDialogFragment.java b/app/src/main/java/com/example/citrusclient/views/AccountColorDialogFragment.java index a459e72..745261b 100644 --- a/app/src/main/java/com/example/citrusclient/views/AccountColorDialogFragment.java +++ b/app/src/main/java/com/example/citrusclient/views/AccountColorDialogFragment.java @@ -22,9 +22,9 @@ public class AccountColorDialogFragment extends DialogFragment { private Citrus citrus; - SettingsFragment target; //なにこれ + SettingsFragment target2; //なにこれ - AccountColorDialogFragment(SettingsFragment st) {target=st;} + AccountColorDialogFragment(SettingsFragment st) {target2=st;} @NonNull //なにこれ @Override public Dialog onCreateDialog(@Nullable Bundle savedInstanceState) { @@ -44,19 +44,19 @@ int selectedId = radioButton.getId(); // ここで選択されたラジオボタンのID(selectedId)を使用して処理を行う if (selectedId == R.id.radioButtonShadow) { - target.returnAccountColor("#D5D5D5"); + target2.returnAccountColor("#D5D5D5"); } else if (selectedId == R.id.radioButtonSprout) { - target.returnAccountColor("#BEECAE"); + target2.returnAccountColor("#BEECAE"); } else if (selectedId == R.id.radioButtonAqua) { - target.returnAccountColor("#BEF7FF"); + target2.returnAccountColor("#BEF7FF"); } else if (selectedId == R.id.radioButtonLavender) { - target.returnAccountColor("#D297FC"); + target2.returnAccountColor("#D297FC"); } else if (selectedId == R.id.radioButtonJasmine) { - target.returnAccountColor("#FFFFFF"); + target2.returnAccountColor("#FFFFFF"); } else if (selectedId == R.id.radioButtonCitrus) { - target.returnAccountColor("#FFFF99"); + target2.returnAccountColor("#FFFF99"); } else if (selectedId == R.id.radioButtonSakura) { - target.returnAccountColor("#FFECEF"); + target2.returnAccountColor("#FFECEF"); } }