mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
Huawei: fix setUpdateState
This commit is contained in:
committed by
José Rebelo
parent
168fec3253
commit
8bf39e62d5
+2
-4
@@ -600,8 +600,7 @@ public class HuaweiSupportProvider {
|
||||
// Reconnect as no communication can succeed after this point
|
||||
final GBDevice device = getDevice();
|
||||
if (device != null) {
|
||||
device.setState(GBDevice.State.WAITING_FOR_RECONNECT);
|
||||
device.sendDeviceUpdateIntent(getContext());
|
||||
device.setUpdateState(GBDevice.State.WAITING_FOR_RECONNECT, getContext());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -906,8 +905,7 @@ public class HuaweiSupportProvider {
|
||||
initRequestQueue.get(initRequestQueue.size() - 1).setFinalizeReq(new RequestCallback() {
|
||||
@Override
|
||||
public void call() {
|
||||
gbDevice.setState(GBDevice.State.INITIALIZED);
|
||||
gbDevice.sendDeviceUpdateIntent(getContext(), GBDevice.DeviceUpdateSubject.DEVICE_STATE);
|
||||
gbDevice.setUpdateState(GBDevice.State.INITIALIZED, getContext());
|
||||
|
||||
if (getHuaweiCoordinator().supportsP2PService()) {
|
||||
if (getHuaweiCoordinator().supportsCalendar()) {
|
||||
|
||||
Reference in New Issue
Block a user