mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
S52 (GloryFit): Disable BT bonding and alarms
This commit is contained in:
+12
@@ -18,8 +18,10 @@ package nodomain.freeyourgadget.gadgetbridge.devices.gloryfit.watches
|
||||
|
||||
import nodomain.freeyourgadget.gadgetbridge.R
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.gloryfit.GloryFitCoordinator
|
||||
import nodomain.freeyourgadget.gadgetbridge.impl.GBDevice
|
||||
import java.util.regex.Pattern
|
||||
|
||||
/// #5063
|
||||
class S52Coordinator : GloryFitCoordinator() {
|
||||
override fun getManufacturer(): String {
|
||||
return "Unspecified"
|
||||
@@ -32,4 +34,14 @@ class S52Coordinator : GloryFitCoordinator() {
|
||||
override fun getDeviceNameResource(): Int {
|
||||
return R.string.devicetype_s52
|
||||
}
|
||||
|
||||
override fun getBondingStyle(): Int {
|
||||
// #5063 - It seems to fail to pair
|
||||
return BONDING_STYLE_NONE
|
||||
}
|
||||
|
||||
override fun getAlarmSlotCount(device: GBDevice): Int {
|
||||
// #5063 - alarms from app do not work
|
||||
return 0
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user