mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
Zepp OS: Fix Sleep as Android initialization
This commit is contained in:
+1
@@ -264,6 +264,7 @@ public class ZeppOsSupport extends AbstractDeviceSupport
|
||||
@Override
|
||||
public void setContext(final GBDevice gbDevice, final BluetoothAdapter btAdapter, final Context context) {
|
||||
super.setContext(gbDevice, btAdapter, context);
|
||||
sleepAsAndroidSender = new SleepAsAndroidSender(gbDevice);
|
||||
heartRateService.setSleepAsAndroidSender(sleepAsAndroidSender);
|
||||
final RealtimeSamplesAggregator realtimeSamplesAggregator = new RealtimeSamplesAggregator(getContext(), getDevice());
|
||||
heartRateService.setRealtimeSamplesAggregator(realtimeSamplesAggregator);
|
||||
|
||||
Reference in New Issue
Block a user