mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-08-16 20:31:00 +02:00
Fossil Hybrid HR: Only do a factory reset when really requested, not also on reboot.
This commit is contained in:
parent
b364029f82
commit
f61c06630a
@ -74,6 +74,7 @@ import nodomain.freeyourgadget.gadgetbridge.service.devices.qhybrid.file.FileHan
|
||||
import nodomain.freeyourgadget.gadgetbridge.service.devices.qhybrid.requests.misfit.DownloadFileRequest;
|
||||
import nodomain.freeyourgadget.gadgetbridge.service.devices.qhybrid.requests.misfit.MoveHandsRequest;
|
||||
import nodomain.freeyourgadget.gadgetbridge.service.devices.qhybrid.requests.misfit.PlayNotificationRequest;
|
||||
import nodomain.freeyourgadget.gadgetbridge.service.serial.GBDeviceProtocol;
|
||||
import nodomain.freeyourgadget.gadgetbridge.util.FileUtils;
|
||||
import nodomain.freeyourgadget.gadgetbridge.util.GB;
|
||||
|
||||
@ -527,7 +528,9 @@ public class QHybridSupport extends QHybridBaseSupport {
|
||||
@Override
|
||||
public void onReset(int flags) {
|
||||
super.onReset(flags);
|
||||
this.watchAdapter.factoryReset();
|
||||
if ((flags & GBDeviceProtocol.RESET_FLAGS_FACTORY_RESET) != 0) {
|
||||
this.watchAdapter.factoryReset();
|
||||
}
|
||||
}
|
||||
|
||||
public double calculateNotificationProgress() {
|
||||
|
Loading…
Reference in New Issue
Block a user