From 2488e37fec4e88db7acc011acea243270ecd01a1 Mon Sep 17 00:00:00 2001 From: rca Date: Wed, 29 Jan 2025 16:08:34 +0900 Subject: [PATCH] add comment --- .../java/com/example/childguard/bluetooth_setupFragment.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/example/childguard/bluetooth_setupFragment.java b/app/src/main/java/com/example/childguard/bluetooth_setupFragment.java index 04f45f8..92d7516 100644 --- a/app/src/main/java/com/example/childguard/bluetooth_setupFragment.java +++ b/app/src/main/java/com/example/childguard/bluetooth_setupFragment.java @@ -108,7 +108,7 @@ public class bluetooth_setupFragment extends Fragment { if (Build.VERSION.SDK_INT < Build.VERSION_CODES.S) { if (ActivityCompat.checkSelfPermission(requireActivity().getApplicationContext(), android.Manifest.permission.BLUETOOTH) != PackageManager.PERMISSION_GRANTED) { Log.w("Bluetooth", "Permission not granted(Android 12-)"); - // show toast then force close the app + // show toast then force close the app (Workaround) Toast.makeText(requireActivity().getApplicationContext(), "Bluetoothの権限が必須です!", Toast.LENGTH_SHORT).show(); requireActivity().finish(); } else { @@ -117,7 +117,7 @@ public class bluetooth_setupFragment extends Fragment { } else { if (ActivityCompat.checkSelfPermission(requireActivity().getApplicationContext(), android.Manifest.permission.BLUETOOTH_CONNECT) != PackageManager.PERMISSION_GRANTED) { Log.w("Bluetooth", "Permission not granted(Android 12+)"); - // show toast then force close the app + // show toast then force close the app (Workaround) Toast.makeText(requireActivity().getApplicationContext(), "Bluetoothの権限が必須です!", Toast.LENGTH_SHORT).show(); requireActivity().finish(); } else {