add comment

This commit is contained in:
rca 2025-01-29 16:08:34 +09:00
parent afbd9060fa
commit 2488e37fec

View File

@ -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 {