mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
Pebble: Include battery read in pull-to-refresh update
This commit is contained in:
+6
-1
@@ -725,7 +725,12 @@ class PebbleIoThread extends GBDeviceIoThread {
|
||||
mInstallSlot = -2;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void readBatteryCharacteristic() {
|
||||
if (mPebbleLESupport != null) {
|
||||
mPebbleLESupport.readBatteryCharacteristic();
|
||||
}
|
||||
}
|
||||
|
||||
public void quit() {
|
||||
mQuit = true;
|
||||
cleanup();
|
||||
|
||||
+6
@@ -261,6 +261,12 @@ public class PebbleSupport extends AbstractSerialDeviceSupport {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onFetchRecordedData(int dataTypes) {
|
||||
super.onFetchRecordedData(dataTypes);
|
||||
getDeviceIOThread().readBatteryCharacteristic();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onSendWeather() {
|
||||
if (reconnect()) {
|
||||
|
||||
Reference in New Issue
Block a user