diff --git a/app/src/main/java/com/example/childguard/SettingFragment.java b/app/src/main/java/com/example/childguard/SettingFragment.java index db9b3ad..c56e580 100644 --- a/app/src/main/java/com/example/childguard/SettingFragment.java +++ b/app/src/main/java/com/example/childguard/SettingFragment.java @@ -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(); + }); + + } } \ No newline at end of file