Free as in Freedom: Codeberg.org. Create your repos!
Browse Source

Add missing MIBAND4 to switch

tags/0.34.1
Andreas Shimokawa 3 weeks ago
parent
commit
9385c26fae

+ 5
- 1
app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/DeviceSupportFactory.java View File

@@ -31,6 +31,7 @@ import nodomain.freeyourgadget.gadgetbridge.R;
31 31
 import nodomain.freeyourgadget.gadgetbridge.impl.GBDevice;
32 32
 import nodomain.freeyourgadget.gadgetbridge.model.DeviceType;
33 33
 import nodomain.freeyourgadget.gadgetbridge.service.devices.huami.amazfitcor2.AmazfitCor2Support;
34
+import nodomain.freeyourgadget.gadgetbridge.service.devices.huami.miband4.MiBand4Support;
34 35
 import nodomain.freeyourgadget.gadgetbridge.service.devices.jyou.BFH16DeviceSupport;
35 36
 import nodomain.freeyourgadget.gadgetbridge.service.devices.casiogb6900.CasioGB6900DeviceSupport;
36 37
 import nodomain.freeyourgadget.gadgetbridge.service.devices.hplus.HPlusSupport;
@@ -128,6 +129,9 @@ public class DeviceSupportFactory {
128 129
                     case MIBAND3:
129 130
                         deviceSupport = new ServiceDeviceSupport(new MiBand3Support(), EnumSet.of(ServiceDeviceSupport.Flags.BUSY_CHECKING));
130 131
                         break;
132
+                    case MIBAND4:
133
+                        deviceSupport = new ServiceDeviceSupport(new MiBand4Support(), EnumSet.of(ServiceDeviceSupport.Flags.BUSY_CHECKING));
134
+                        break;
131 135
                     case AMAZFITBIP:
132 136
                         deviceSupport = new ServiceDeviceSupport(new AmazfitBipSupport(), EnumSet.of(ServiceDeviceSupport.Flags.BUSY_CHECKING));
133 137
                         break;
@@ -182,7 +186,7 @@ public class DeviceSupportFactory {
182 186
                     case CASIOGB6900:
183 187
                         deviceSupport = new ServiceDeviceSupport(new CasioGB6900DeviceSupport(), EnumSet.of(ServiceDeviceSupport.Flags.BUSY_CHECKING));
184 188
                         break;
185
-		    case MISCALE2:
189
+                    case MISCALE2:
186 190
                         deviceSupport = new ServiceDeviceSupport(new MiScale2DeviceSupport(), EnumSet.of(ServiceDeviceSupport.Flags.BUSY_CHECKING));
187 191
                         break;
188 192
                     case BFH16:

Loading…
Cancel
Save