From b5c281b8dd7c2cc9ad2a0d55832cdd5ca87c8e8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=8D=E3=82=80=E3=81=AD=E3=81=93?= Date: Wed, 17 Jan 2024 19:20:24 +0900 Subject: [PATCH] =?UTF-8?q?=E4=B8=8D=E8=A6=81=E3=81=AA=E5=87=A6=E7=90=86?= =?UTF-8?q?=E3=82=92=E5=89=8A=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/example/childguard/HomeFragment.java | 24 ------------------- 1 file changed, 24 deletions(-) diff --git a/app/src/main/java/com/example/childguard/HomeFragment.java b/app/src/main/java/com/example/childguard/HomeFragment.java index fb9d1e3..a9358b0 100644 --- a/app/src/main/java/com/example/childguard/HomeFragment.java +++ b/app/src/main/java/com/example/childguard/HomeFragment.java @@ -84,31 +84,7 @@ public class HomeFragment extends Fragment implements OnEventListener{ @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { - // Log.d("HomeFlagment_cnt", "aaaaa"); - // Inflate the layout for this fragment View view = inflater.inflate(R.layout.fragment_home, container, false); - MainActivity activity = (MainActivity) getActivity(); - //共有プリファレンス全体の準備 - SharedPreferences sharedPreferences = getActivity().getSharedPreferences("app_situation", MODE_PRIVATE); - //QRコード印刷の処理 - Button bt1 = view.findViewById(R.id.QRprinting); - bt1.setOnClickListener(v -> { - //初回起動かを保存する変数 - - }); - //bluetooth設定ボタンの処理 - Button bt2 = view.findViewById(R.id.Bluetooth_setup); - bt2.setOnClickListener(new View.OnClickListener() { - @Override - public void onClick(View v) { - replaceFragment(new bluetooth_setupFragment()); - } - }); - - //デバック用ボタン - view.findViewById(R.id.bt_debug).setOnClickListener( v -> { - Toast.makeText(getContext(), PreferenceManager.getDefaultSharedPreferences(getContext().getApplicationContext()).getString("bluetooth_device_id", "none"), Toast.LENGTH_SHORT).show(); - }); return view; }