mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-28 04:46:51 +01:00
BLE Intent API: Fix build after rebase
This commit is contained in:
parent
aae1d40d54
commit
b1c064d9ca
@ -109,7 +109,7 @@ public class BleIntentApi {
|
|||||||
};
|
};
|
||||||
|
|
||||||
public static boolean isEnabled(GBDevice device) {
|
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 intentApiEnabledReadWrite = devicePrefs.getBoolean(PREFS_KEY_DEVICE_BLE_API_DEVICE_READ_WRITE, false);
|
||||||
boolean intentApiEnabledNotifications = devicePrefs.getBoolean(PREFS_KEY_DEVICE_BLE_API_DEVICE_NOTIFY, false);
|
boolean intentApiEnabledNotifications = devicePrefs.getBoolean(PREFS_KEY_DEVICE_BLE_API_DEVICE_NOTIFY, false);
|
||||||
@ -200,7 +200,7 @@ public class BleIntentApi {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void handleBLEApiPrefs(){
|
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.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.intentApiEnabledNotifications = devicePrefs.getBoolean(PREFS_KEY_DEVICE_BLE_API_DEVICE_NOTIFY, false);
|
||||||
this.intentApiEnabledDeviceState = devicePrefs.getBoolean(PREFS_KEY_DEVICE_BLE_API_DEVICE_STATE, false);
|
this.intentApiEnabledDeviceState = devicePrefs.getBoolean(PREFS_KEY_DEVICE_BLE_API_DEVICE_STATE, false);
|
||||||
|
Loading…
Reference in New Issue
Block a user