mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2025-02-24 16:31:13 +01:00
Fix some warnings
This commit is contained in:
parent
44a36a5f1d
commit
3b94a96060
@ -31,7 +31,7 @@ public final class MiBandConst {
|
|||||||
String value = null;
|
String value = null;
|
||||||
try {
|
try {
|
||||||
value = prefs.getString(key, String.valueOf(defaultValue));
|
value = prefs.getString(key, String.valueOf(defaultValue));
|
||||||
return Integer.valueOf(value).intValue();
|
return Integer.valueOf(value);
|
||||||
} catch (NumberFormatException ex) {
|
} catch (NumberFormatException ex) {
|
||||||
LOG.error("Error converting preference value to int: " + key + ": " + value);
|
LOG.error("Error converting preference value to int: " + key + ": " + value);
|
||||||
return defaultValue;
|
return defaultValue;
|
||||||
@ -43,8 +43,8 @@ public final class MiBandConst {
|
|||||||
return prefs.getString(key, defaultValue);
|
return prefs.getString(key, defaultValue);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static final String getNotificationPrefKey(String pref, String origin) {
|
public static String getNotificationPrefKey(String pref, String origin) {
|
||||||
return new StringBuilder(pref).append('_').append(origin).toString();
|
return pref + '_' + origin;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static final String VIBRATION_PROFILE = "mi_vibration_profile";
|
public static final String VIBRATION_PROFILE = "mi_vibration_profile";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user