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 c39c2323..c3bb6ad7 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 @@ -40,7 +40,7 @@ public class DebugSharedPrefEditorFragment extends Fragment { @Inject SharedPref sharedPref; - SharedPrefType sharedPrefType = SharedPrefType.COMMON; + SharedPrefType sharedPrefType = null; public DebugSharedPrefEditorFragment() { // Required empty public constructor @@ -90,8 +90,10 @@ public class DebugSharedPrefEditorFragment extends Fragment { ((RadioGroup) view.findViewById(R.id.radioGroupPrefType)).setOnCheckedChangeListener((group, checkedId) -> { if (checkedId == R.id.radioButtonCommon) { sharedPrefType = SharedPrefType.COMMON; + updateList(prefItemTextView); } else if (checkedId == R.id.radioButtonUserData) { sharedPrefType = SharedPrefType.USERDATA; + updateList(prefItemTextView); } else { Log.e("DebugSharedPrefEditorFragment", "radioButtonのIDが不正です"); }