From 516ca15abd6b7563e9ad93ff902053754198d7b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=8D=E3=82=80=E3=81=AD=E3=81=93?= Date: Mon, 11 Dec 2023 12:58:13 +0900 Subject: [PATCH] =?UTF-8?q?=E5=8F=96=E3=82=8A=E9=81=95=E3=81=88=E3=81=A6?= =?UTF-8?q?=E3=81=84=E3=81=9F=E3=81=AE=E3=81=A7=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../feature/debug/DebugSharedPrefEditorFragment.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/feature/debug/src/main/java/one/nem/lacerta/feature/debug/DebugSharedPrefEditorFragment.java b/feature/debug/src/main/java/one/nem/lacerta/feature/debug/DebugSharedPrefEditorFragment.java index 6f1dec70..043a92fc 100644 --- a/feature/debug/src/main/java/one/nem/lacerta/feature/debug/DebugSharedPrefEditorFragment.java +++ b/feature/debug/src/main/java/one/nem/lacerta/feature/debug/DebugSharedPrefEditorFragment.java @@ -72,7 +72,7 @@ public class DebugSharedPrefEditorFragment extends Fragment { EditText loadKeyEditText = view.findViewById(R.id.loadKeyEditText); EditText saveKeyEditText = view.findViewById(R.id.saveKeyEditText); - TextView loadValueTextView = view.findViewById(R.id.loadValueTextView); + TextView prefItemTextView = view.findViewById(R.id.prefItemTextView); view.findViewById(R.id.loadButton).setOnClickListener(v -> { String value = sharedPref.getSharedPreferencesByTag(sharedPrefType).getString(loadKeyEditText.getText().toString(), "null"); @@ -82,17 +82,17 @@ public class DebugSharedPrefEditorFragment extends Fragment { view.findViewById(R.id.saveButton).setOnClickListener(v -> { String[] split = saveKeyEditText.getText().toString().split(":"); sharedPref.getSharedPreferencesByTag(sharedPrefType).edit().putString(split[0], split[1]).apply(); - updateList(loadValueTextView); + updateList(prefItemTextView); }); // ラジオボタンの変更を監視 view.findViewById(R.id.radioButtonCommon).setOnClickListener(v -> { sharedPrefType = SharedPrefType.COMMON; - updateList(loadValueTextView); + updateList(prefItemTextView); }); view.findViewById(R.id.radioButtonUserData).setOnClickListener(v -> { sharedPrefType = SharedPrefType.USERDATA; - updateList(loadValueTextView); + updateList(prefItemTextView); }); }