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:
MrYoranimo 2024-01-16 13:50:23 +01:00 committed by José Rebelo
parent 1185699c56
commit 7f68dc5449

View File

@ -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;