1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-25 19:36:50 +01:00

Move lefun_language constant to generic

This commit is contained in:
Damien Gaignon 2022-03-07 17:11:47 +01:00 committed by Gitea
parent fd69b1a3ea
commit 619780977c
4 changed files with 3 additions and 5 deletions

View File

@ -110,7 +110,6 @@ public class DeviceSettingsPreferenceConst {
public static final String PREF_HYDRATION_SWITCH = "pref_hydration_switch"; public static final String PREF_HYDRATION_SWITCH = "pref_hydration_switch";
public static final String PREF_HYDRATION_PERIOD = "pref_hydration_period"; public static final String PREF_HYDRATION_PERIOD = "pref_hydration_period";
public static final String PREF_AMPM_ENABLED = "pref_ampm_enabled"; public static final String PREF_AMPM_ENABLED = "pref_ampm_enabled";
public static final String PREF_LEFUN_INTERFACE_LANGUAGE = "pref_lefun_interface_language";
public static final String PREF_SONYSWR12_LOW_VIBRATION = "vibration_preference"; public static final String PREF_SONYSWR12_LOW_VIBRATION = "vibration_preference";
public static final String PREF_SONYSWR12_STAMINA = "stamina_preference"; public static final String PREF_SONYSWR12_STAMINA = "stamina_preference";

View File

@ -402,7 +402,6 @@ public class DeviceSpecificSettingsFragment extends PreferenceFragmentCompat imp
addPreferenceHandlerFor(PREF_HYDRATION_SWITCH); addPreferenceHandlerFor(PREF_HYDRATION_SWITCH);
addPreferenceHandlerFor(PREF_HYDRATION_PERIOD); addPreferenceHandlerFor(PREF_HYDRATION_PERIOD);
addPreferenceHandlerFor(PREF_AMPM_ENABLED); addPreferenceHandlerFor(PREF_AMPM_ENABLED);
addPreferenceHandlerFor(PREF_LEFUN_INTERFACE_LANGUAGE);
addPreferenceHandlerFor(PREF_SOUNDS); addPreferenceHandlerFor(PREF_SOUNDS);
addPreferenceHandlerFor(PREF_HYBRID_HR_DRAW_WIDGET_CIRCLES); addPreferenceHandlerFor(PREF_HYBRID_HR_DRAW_WIDGET_CIRCLES);

View File

@ -445,8 +445,8 @@ public class LefunDeviceSupport extends AbstractBTLEDeviceSupport {
sendUnitsSetting(null); sendUnitsSetting(null);
break; break;
} }
case DeviceSettingsPreferenceConst.PREF_LEFUN_INTERFACE_LANGUAGE: { case DeviceSettingsPreferenceConst.PREF_LANGUAGE: {
String value = prefs.getString(DeviceSettingsPreferenceConst.PREF_LEFUN_INTERFACE_LANGUAGE, "0"); String value = prefs.getString(DeviceSettingsPreferenceConst.PREF_LANGUAGE, "0");
int intValue = Integer.parseInt(value); int intValue = Integer.parseInt(value);
sendLanguageSetting((byte) intValue); sendLanguageSetting((byte) intValue);
break; break;

View File

@ -5,7 +5,7 @@
android:entries="@array/lefun_interface_language_names" android:entries="@array/lefun_interface_language_names"
android:entryValues="@array/lefun_interface_language_values" android:entryValues="@array/lefun_interface_language_values"
android:icon="@drawable/ic_language" android:icon="@drawable/ic_language"
android:key="pref_lefun_interface_language" android:key="language"
android:summary="%s" android:summary="%s"
android:title="@string/lefun_prefs_interface_language_title" /> android:title="@string/lefun_prefs_interface_language_title" />
</androidx.preference.PreferenceScreen> </androidx.preference.PreferenceScreen>