未使用コードを削除
This commit is contained in:
parent
1cde0d74af
commit
705cbce5f5
|
@ -183,13 +183,9 @@ public class SettingMainFragment extends Fragment {
|
||||||
LayoutInflater dialogInflater = requireActivity().getLayoutInflater();
|
LayoutInflater dialogInflater = requireActivity().getLayoutInflater();
|
||||||
|
|
||||||
View addChildDialogView = dialogInflater.inflate(R.layout.fragment_login_dialog_view, null);
|
View addChildDialogView = dialogInflater.inflate(R.layout.fragment_login_dialog_view, null);
|
||||||
|
|
||||||
View childListItemView = inflater.inflate(R.layout.list_item_child_name_list, container, false);
|
|
||||||
|
|
||||||
mainAdapter.setLoginButtonCallback(new SettingAdapter.LoginButtonCallback() {
|
mainAdapter.setLoginButtonCallback(new SettingAdapter.LoginButtonCallback() {
|
||||||
@Override
|
@Override
|
||||||
public void onLoginButtonClicked(String childId) {
|
public void onLoginButtonClicked(String childId) {
|
||||||
// Toast.makeText(getContext(), "ボタンがクリックされました(" + childId + ")", Toast.LENGTH_LONG).show();
|
|
||||||
int loginCode = childData.issueLoginCode(childId).join();
|
int loginCode = childData.issueLoginCode(childId).join();
|
||||||
TextView loginCodeTextView = addChildDialogView.findViewById(R.id.loginCode);
|
TextView loginCodeTextView = addChildDialogView.findViewById(R.id.loginCode);
|
||||||
new StringBuilder(Integer.toString(loginCode)).insert(3, "-");
|
new StringBuilder(Integer.toString(loginCode)).insert(3, "-");
|
||||||
|
@ -202,33 +198,10 @@ public class SettingMainFragment extends Fragment {
|
||||||
builder.setTitle("ログインコード")
|
builder.setTitle("ログインコード")
|
||||||
.setView(addChildDialogView)
|
.setView(addChildDialogView)
|
||||||
.setNeutralButton("閉じる", null);
|
.setNeutralButton("閉じる", null);
|
||||||
builder.create();
|
|
||||||
|
|
||||||
// childListItemView.findViewById(R.id.loginButton).setOnClickListener(v -> {
|
|
||||||
builder.show();
|
builder.show();
|
||||||
// });
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// int loginCode = childData.issueLoginCode("543256").join();
|
|
||||||
// TextView loginCodeTextView = addChildDialogView.findViewById(R.id.loginCode);
|
|
||||||
// new StringBuilder(Integer.toString(loginCode)).insert(3,"-");
|
|
||||||
//
|
|
||||||
// loginCodeTextView.setText(
|
|
||||||
// new StringBuilder(Integer.toString(loginCode)).insert(3,"-"));
|
|
||||||
|
|
||||||
MaterialAlertDialogBuilder builder = new MaterialAlertDialogBuilder(requireContext());
|
|
||||||
builder.setTitle("ログインコード")
|
|
||||||
.setView(addChildDialogView)
|
|
||||||
.setNeutralButton("閉じる", null);
|
|
||||||
builder.create();
|
|
||||||
//
|
|
||||||
// childListItemView.findViewById(R.id.loginButton).setOnClickListener(v -> {
|
|
||||||
// builder.show();
|
|
||||||
// });
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// ダイアログの表示
|
// ダイアログの表示
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user