mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-26 17:53:14 +00:00
ラジオボタン切り替え時にリストを更新するように
This commit is contained in:
parent
6839e60ff9
commit
29a77307a1
|
@ -40,7 +40,7 @@ public class DebugSharedPrefEditorFragment extends Fragment {
|
||||||
@Inject
|
@Inject
|
||||||
SharedPref sharedPref;
|
SharedPref sharedPref;
|
||||||
|
|
||||||
SharedPrefType sharedPrefType = SharedPrefType.COMMON;
|
SharedPrefType sharedPrefType = null;
|
||||||
|
|
||||||
public DebugSharedPrefEditorFragment() {
|
public DebugSharedPrefEditorFragment() {
|
||||||
// Required empty public constructor
|
// Required empty public constructor
|
||||||
|
@ -90,8 +90,10 @@ public class DebugSharedPrefEditorFragment extends Fragment {
|
||||||
((RadioGroup) view.findViewById(R.id.radioGroupPrefType)).setOnCheckedChangeListener((group, checkedId) -> {
|
((RadioGroup) view.findViewById(R.id.radioGroupPrefType)).setOnCheckedChangeListener((group, checkedId) -> {
|
||||||
if (checkedId == R.id.radioButtonCommon) {
|
if (checkedId == R.id.radioButtonCommon) {
|
||||||
sharedPrefType = SharedPrefType.COMMON;
|
sharedPrefType = SharedPrefType.COMMON;
|
||||||
|
updateList(prefItemTextView);
|
||||||
} else if (checkedId == R.id.radioButtonUserData) {
|
} else if (checkedId == R.id.radioButtonUserData) {
|
||||||
sharedPrefType = SharedPrefType.USERDATA;
|
sharedPrefType = SharedPrefType.USERDATA;
|
||||||
|
updateList(prefItemTextView);
|
||||||
} else {
|
} else {
|
||||||
Log.e("DebugSharedPrefEditorFragment", "radioButtonのIDが不正です");
|
Log.e("DebugSharedPrefEditorFragment", "radioButtonのIDが不正です");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user