プリミティブ型に変更

This commit is contained in:
r-ca committed 2024-07-11 15:35:00 +09:00
1 parent 66fdb04556
commit fb1faa6d56
1 file changed
+1 -1
@@ -266,7 +266,7 @@ public class TestService extends Service {
SharedPreferences.Editor e = pref.edit(); SharedPreferences.Editor e = pref.edit();
String action = intent.getAction(); // may need to chain this to a recognizing function String action = intent.getAction(); // may need to chain this to a recognizing function
Boolean isInCar = pref.getBoolean("isInCarPref", false); boolean isInCar = pref.getBoolean("isInCarPref", false);
if (BluetoothDevice.ACTION_ACL_CONNECTED.equals(action)) { if (BluetoothDevice.ACTION_ACL_CONNECTED.equals(action)) {
//Do something if connected //Do something if connected