Bluetooth設定を起動できるように

This commit is contained in:
ろむねこ 2024-01-17 17:23:07 +09:00
parent 3d5c1cec09
commit 953f3b81d0
No known key found for this signature in database
GPG Key ID: FA1F39A1BA37D168

View File

@ -36,4 +36,14 @@ public class SettingFragment extends Fragment {
// Inflate the layout for this fragment
return inflater.inflate(R.layout.fragment_setting, container, false);
}
@Override
public void onViewCreated(View view, Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
view.findViewById(R.id.button_bluetooth_setting).setOnClickListener( v -> {
getParentFragmentManager().beginTransaction().replace(R.id.fragmentContainerView, bluetooth_setupFragment.newInstance("test", "test")).commit();
});
}
}