mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-23 00:13:16 +00:00
ロジックが意味不明だったので修正
This commit is contained in:
parent
538e6ed98d
commit
504e0a76d5
|
@ -10,6 +10,7 @@ import android.view.LayoutInflater;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.view.ViewGroup;
|
import android.view.ViewGroup;
|
||||||
import android.widget.EditText;
|
import android.widget.EditText;
|
||||||
|
import android.widget.RadioGroup;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
|
|
||||||
import org.w3c.dom.Text;
|
import org.w3c.dom.Text;
|
||||||
|
@ -86,12 +87,16 @@ public class DebugSharedPrefEditorFragment extends Fragment {
|
||||||
});
|
});
|
||||||
|
|
||||||
// ラジオボタンの変更を監視
|
// ラジオボタンの変更を監視
|
||||||
view.findViewById(R.id.radioButtonCommon).setOnClickListener(v -> {
|
((RadioGroup) view.findViewById(R.id.radioGroupPrefType)).setOnCheckedChangeListener((group, checkedId) -> {
|
||||||
sharedPrefType = SharedPrefType.COMMON;
|
if (checkedId == R.id.radioButtonCommon) {
|
||||||
updateList(prefItemTextView);
|
sharedPrefType = SharedPrefType.COMMON;
|
||||||
});
|
view.findViewById(R.id.radioButtonUserData).setSelected(false);
|
||||||
view.findViewById(R.id.radioButtonUserData).setOnClickListener(v -> {
|
} else if (checkedId == R.id.radioButtonUserData) {
|
||||||
sharedPrefType = SharedPrefType.USERDATA;
|
sharedPrefType = SharedPrefType.USERDATA;
|
||||||
|
view.findViewById(R.id.radioButtonCommon).setSelected(false);
|
||||||
|
} else {
|
||||||
|
Log.e("DebugSharedPrefEditorFragment", "radioButtonのIDが不正です");
|
||||||
|
}
|
||||||
updateList(prefItemTextView);
|
updateList(prefItemTextView);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user