diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/miscale/MiCompositionScaleCoordinator.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/miscale/MiCompositionScaleCoordinator.java
index fed0f767b..6e881dc5c 100644
--- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/miscale/MiCompositionScaleCoordinator.java
+++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/miscale/MiCompositionScaleCoordinator.java
@@ -15,7 +15,7 @@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see . */
-package nodomain.freeyourgadget.gadgetbridge.devices.miscale2;
+package nodomain.freeyourgadget.gadgetbridge.devices.miscale;
import android.app.Activity;
import android.bluetooth.le.ScanFilter;
@@ -45,10 +45,10 @@ import nodomain.freeyourgadget.gadgetbridge.model.ActivitySample;
import nodomain.freeyourgadget.gadgetbridge.model.DeviceType;
import nodomain.freeyourgadget.gadgetbridge.service.DeviceSupport;
import nodomain.freeyourgadget.gadgetbridge.service.btle.GattService;
-import nodomain.freeyourgadget.gadgetbridge.service.devices.miscale2.MiScale2DeviceSupport;
+import nodomain.freeyourgadget.gadgetbridge.service.devices.miscale.MiCompositionScaleDeviceSupport;
-public class MiScale2DeviceCoordinator extends AbstractBLEDeviceCoordinator {
- private static final Logger LOG = LoggerFactory.getLogger(MiScale2DeviceCoordinator.class);
+public class MiCompositionScaleCoordinator extends AbstractBLEDeviceCoordinator {
+ private static final Logger LOG = LoggerFactory.getLogger(MiCompositionScaleCoordinator.class);
@Override
protected void deleteDevice(@NonNull GBDevice gbDevice, @NonNull Device device, @NonNull DaoSession session) throws GBException {
@@ -158,23 +158,23 @@ public class MiScale2DeviceCoordinator extends AbstractBLEDeviceCoordinator {
@NonNull
@Override
public Class extends DeviceSupport> getDeviceSupportClass() {
- return MiScale2DeviceSupport.class;
+ return MiCompositionScaleDeviceSupport.class;
}
@Override
public int getDeviceNameResource() {
- return R.string.devicetype_miscale2;
+ return R.string.devicetype_micompositionscale;
}
@Override
public int getDefaultIconResource() {
- return R.drawable.ic_device_miscale2;
+ return R.drawable.ic_device_miscale;
}
@Override
public int getDisabledIconResource() {
- return R.drawable.ic_device_miscale2_disabled;
+ return R.drawable.ic_device_miscale_disabled;
}
}
diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/model/DeviceType.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/model/DeviceType.java
index 5342a9650..36649efbc 100644
--- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/model/DeviceType.java
+++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/model/DeviceType.java
@@ -188,7 +188,7 @@ import nodomain.freeyourgadget.gadgetbridge.devices.miband.MiBandCoordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.mijia_lywsd.MijiaLywsd02Coordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.mijia_lywsd.MijiaLywsd03Coordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.mijia_lywsd.MijiaMhoC303Coordinator;
-import nodomain.freeyourgadget.gadgetbridge.devices.miscale2.MiScale2DeviceCoordinator;
+import nodomain.freeyourgadget.gadgetbridge.devices.miscale.MiCompositionScaleCoordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.moondrop.MoondropSpaceTravelCoordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.no1f1.No1F1Coordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.nothing.CmfBudsPro2Coordinator;
@@ -355,7 +355,7 @@ public enum DeviceType {
CASIOGBX100(CasioGBX100DeviceCoordinator.class),
CASIOGWB5600(CasioGWB5600DeviceCoordinator.class),
CASIOGMWB5000(CasioGMWB5000DeviceCoordinator.class),
- MISCALE2(MiScale2DeviceCoordinator.class),
+ MICOMPOSITIONSCALE(MiCompositionScaleCoordinator.class),
BFH16(BFH16DeviceCoordinator.class),
MAKIBESHR3(MakibesHR3Coordinator.class),
BANGLEJS(BangleJSCoordinator.class),
diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/miscale/MiCompositionScaleDeviceSupport.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/miscale/MiCompositionScaleDeviceSupport.java
index 9d11bcbc1..1e4548a0c 100644
--- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/miscale/MiCompositionScaleDeviceSupport.java
+++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/miscale/MiCompositionScaleDeviceSupport.java
@@ -15,7 +15,7 @@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see . */
-package nodomain.freeyourgadget.gadgetbridge.service.devices.miscale2;
+package nodomain.freeyourgadget.gadgetbridge.service.devices.miscale;
import android.bluetooth.BluetoothGatt;
import android.bluetooth.BluetoothGattCharacteristic;
@@ -41,13 +41,13 @@ import nodomain.freeyourgadget.gadgetbridge.service.btle.profiles.IntentListener
import nodomain.freeyourgadget.gadgetbridge.service.btle.profiles.deviceinfo.DeviceInfoProfile;
import nodomain.freeyourgadget.gadgetbridge.util.GB;
-public class MiScale2DeviceSupport extends AbstractBTLEDeviceSupport {
+public class MiCompositionScaleDeviceSupport extends AbstractBTLEDeviceSupport {
- private static final Logger LOG = LoggerFactory.getLogger(MiScale2DeviceSupport.class);
+ private static final Logger LOG = LoggerFactory.getLogger(MiCompositionScaleDeviceSupport.class);
private static final String UNIT_KG = "kg";
private static final String UNIT_LBS = "lb";
private static final String UNIT_JIN = "jīn";
- private final DeviceInfoProfile deviceInfoProfile;
+ private final DeviceInfoProfile deviceInfoProfile;
private final GBDeviceEventVersionInfo versionCmd = new GBDeviceEventVersionInfo();
private final IntentListener mListener = new IntentListener() {
@Override
@@ -59,7 +59,7 @@ public class MiScale2DeviceSupport extends AbstractBTLEDeviceSupport {
}
};
- public MiScale2DeviceSupport() {
+ public MiCompositionScaleDeviceSupport() {
super(LOG);
addSupportedService(GattService.UUID_SERVICE_GENERIC_ACCESS);
addSupportedService(GattService.UUID_SERVICE_GENERIC_ATTRIBUTE);
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 4bd05b33d..0a3124f06 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -1720,7 +1720,7 @@
Casio GBX-100
Casio GW-B5600
Casio GMW-B5000
- Mi Scale 2
+ Mi Body Composition Scale 2
iTag
BFH-16
Mijia Smart Clock