mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-29 05:16:51 +01:00
Move lefun_language constant to generic
This commit is contained in:
parent
fd69b1a3ea
commit
619780977c
@ -110,7 +110,6 @@ public class DeviceSettingsPreferenceConst {
|
||||
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_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_STAMINA = "stamina_preference";
|
||||
|
@ -402,7 +402,6 @@ public class DeviceSpecificSettingsFragment extends PreferenceFragmentCompat imp
|
||||
addPreferenceHandlerFor(PREF_HYDRATION_SWITCH);
|
||||
addPreferenceHandlerFor(PREF_HYDRATION_PERIOD);
|
||||
addPreferenceHandlerFor(PREF_AMPM_ENABLED);
|
||||
addPreferenceHandlerFor(PREF_LEFUN_INTERFACE_LANGUAGE);
|
||||
addPreferenceHandlerFor(PREF_SOUNDS);
|
||||
|
||||
addPreferenceHandlerFor(PREF_HYBRID_HR_DRAW_WIDGET_CIRCLES);
|
||||
|
@ -445,8 +445,8 @@ public class LefunDeviceSupport extends AbstractBTLEDeviceSupport {
|
||||
sendUnitsSetting(null);
|
||||
break;
|
||||
}
|
||||
case DeviceSettingsPreferenceConst.PREF_LEFUN_INTERFACE_LANGUAGE: {
|
||||
String value = prefs.getString(DeviceSettingsPreferenceConst.PREF_LEFUN_INTERFACE_LANGUAGE, "0");
|
||||
case DeviceSettingsPreferenceConst.PREF_LANGUAGE: {
|
||||
String value = prefs.getString(DeviceSettingsPreferenceConst.PREF_LANGUAGE, "0");
|
||||
int intValue = Integer.parseInt(value);
|
||||
sendLanguageSetting((byte) intValue);
|
||||
break;
|
||||
|
@ -5,7 +5,7 @@
|
||||
android:entries="@array/lefun_interface_language_names"
|
||||
android:entryValues="@array/lefun_interface_language_values"
|
||||
android:icon="@drawable/ic_language"
|
||||
android:key="pref_lefun_interface_language"
|
||||
android:key="language"
|
||||
android:summary="%s"
|
||||
android:title="@string/lefun_prefs_interface_language_title" />
|
||||
</androidx.preference.PreferenceScreen>
|
||||
|
Loading…
Reference in New Issue
Block a user