1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-06-08 22:28:20 +02:00

Change id of Lemfo SG2 to 44

Change name from SG2 to Lemfo SG2
This commit is contained in:
frederic lesur LESUR Frederic 2020-08-27 09:17:17 +09:00 committed by Gitea
parent 997504c01a
commit c67ec5f71c
3 changed files with 8 additions and 4 deletions

View File

@ -17,7 +17,7 @@
package nodomain.freeyourgadget.gadgetbridge.devices.hplus;
/*
* @author Alejandro Ladera Chamorro <11555126+tiparega@users.noreply.github.com>
* @author Frederic LESUR contact@memiks.fr;
*/
@ -26,7 +26,7 @@ import nodomain.freeyourgadget.gadgetbridge.impl.GBDeviceCandidate;
import nodomain.freeyourgadget.gadgetbridge.model.DeviceType;
/**
* Pseudo Coordinator for the SG2, a sub type of the HPLUS devices
* Pseudo Coordinator for the Lemfo SG2, a sub type of the HPLUS devices
*/
public class SG2Coordinator extends HPlusCoordinator {
@ -51,4 +51,8 @@ public class SG2Coordinator extends HPlusCoordinator {
return "Lemfo";
}
@Override
public boolean supportsWeather() {
return true;
}
}

View File

@ -52,6 +52,7 @@ public enum DeviceType {
MAKIBESF68(41, R.drawable.ic_device_hplus, R.drawable.ic_device_hplus_disabled, R.string.devicetype_makibes_f68),
EXRIZUK8(42, R.drawable.ic_device_hplus, R.drawable.ic_device_hplus_disabled, R.string.devicetype_exrizu_k8),
Q8(43, R.drawable.ic_device_hplus, R.drawable.ic_device_hplus_disabled, R.string.devicetype_q8),
SG2(44, R.drawable.ic_device_hplus, R.drawable.ic_device_hplus_disabled, R.string.devicetype_sg2),
NO1F1(50, R.drawable.ic_device_hplus, R.drawable.ic_device_hplus_disabled, R.string.devicetype_no1_f1),
TECLASTH30(60, R.drawable.ic_device_h30_h10, R.drawable.ic_device_h30_h10_disabled, R.string.devicetype_teclast_h30),
Y5(61, R.drawable.ic_device_h30_h10, R.drawable.ic_device_roidmi_disabled, R.string.devicetype_y5),
@ -74,7 +75,6 @@ public enum DeviceType {
MIJIA_LYWSD02(200, R.drawable.ic_device_pebble, R.drawable.ic_device_pebble_disabled, R.string.devicetype_mijia_lywsd02),
ITAG(250, R.drawable.ic_device_itag, R.drawable.ic_device_itag_disabled, R.string.devicetype_itag),
VIBRATISSIMO(300, R.drawable.ic_device_lovetoy, R.drawable.ic_device_lovetoy_disabled, R.string.devicetype_vibratissimo),
SG2(310, R.drawable.ic_device_hplus, R.drawable.ic_device_hplus_disabled, R.string.devicetype_sg2),
TEST(1000, R.drawable.ic_device_default, R.drawable.ic_device_default_disabled, R.string.devicetype_test);
private final int key;
@DrawableRes

View File

@ -770,7 +770,7 @@
<string name="notification_channel_name">Gadgetbridge notifications</string>
<string name="notification_channel_high_priority_name">Gadgetbridge notifications high priority</string>
<string name="devicetype_amazfit_gts">Amazfit GTS</string>
<string name="devicetype_sg2">SG2</string>
<string name="devicetype_sg2">Lemfo SG2</string>
<!-- Menus on the smart device -->
<string name="menuitem_shortcut_alipay">Alipay (Shortcut)</string>
<string name="menuitem_shortcut_weather">Weather (Shortcut)</string>