1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-26 10:35:50 +01:00

BLE Intent API: Fix build after rebase

This commit is contained in:
José Rebelo 2024-09-09 00:32:53 +01:00
parent aae1d40d54
commit b1c064d9ca

View File

@ -109,7 +109,7 @@ public class BleIntentApi {
};
public static boolean isEnabled(GBDevice device) {
Prefs devicePrefs = GBApplication.getDevicePrefs(device.getAddress());
Prefs devicePrefs = GBApplication.getDevicePrefs(device);
boolean intentApiEnabledReadWrite = devicePrefs.getBoolean(PREFS_KEY_DEVICE_BLE_API_DEVICE_READ_WRITE, false);
boolean intentApiEnabledNotifications = devicePrefs.getBoolean(PREFS_KEY_DEVICE_BLE_API_DEVICE_NOTIFY, false);
@ -200,7 +200,7 @@ public class BleIntentApi {
}
public void handleBLEApiPrefs(){
Prefs devicePrefs = GBApplication.getDevicePrefs(getDevice().getAddress());
Prefs devicePrefs = GBApplication.getDevicePrefs(getDevice());
this.intentApiEnabledReadWrite = devicePrefs.getBoolean(PREFS_KEY_DEVICE_BLE_API_DEVICE_READ_WRITE, false);
this.intentApiEnabledNotifications = devicePrefs.getBoolean(PREFS_KEY_DEVICE_BLE_API_DEVICE_NOTIFY, false);
this.intentApiEnabledDeviceState = devicePrefs.getBoolean(PREFS_KEY_DEVICE_BLE_API_DEVICE_STATE, false);