mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-01-25 08:05:55 +01:00
Set default year for date-of-birth to 1970
Prevent undefined behavior on devices that do not have a range check on the year from the DOB before calculating someone's age
This commit is contained in:
parent
1185699c56
commit
7f68dc5449
@ -49,7 +49,7 @@ public class ActivityUser {
|
||||
|
||||
private static final String defaultUserName = "gadgetbridge-user";
|
||||
public static final int defaultUserGender = GENDER_FEMALE;
|
||||
public static final int defaultUserYearOfBirth = 0;
|
||||
public static final int defaultUserYearOfBirth = 1970;
|
||||
public static final int defaultUserAge = 0;
|
||||
public static final int defaultUserHeightCm = 175;
|
||||
public static final int defaultUserWeightKg = 70;
|
||||
|
Loading…
Reference in New Issue
Block a user