Set default date of birth to 2000-01-01

This commit is contained in:
José Rebelo 2025-01-09 18:08:15 +00:00
parent c0883de546
commit 7893ace986
3 changed files with 5 additions and 4 deletions

View File

@ -51,7 +51,7 @@ public class ActivityUser {
private static final String defaultUserName = "gadgetbridge-user"; private static final String defaultUserName = "gadgetbridge-user";
public static final int defaultUserGender = GENDER_FEMALE; public static final int defaultUserGender = GENDER_FEMALE;
public static final String defaultUserDateOfBirth = "1970-01-01"; public static final String defaultUserDateOfBirth = "2000-01-01";
public static final int defaultUserAge = 0; public static final int defaultUserAge = 0;
public static final int defaultUserHeightCm = 175; public static final int defaultUserHeightCm = 175;
public static final int defaultUserWeightKg = 70; public static final int defaultUserWeightKg = 70;

View File

@ -27,9 +27,9 @@ import java.util.Date;
import java.util.Locale; import java.util.Locale;
public class XDatePreference extends DialogPreference { public class XDatePreference extends DialogPreference {
private int year; private int year = 1970;
private int month; private int month = 1;
private int day; private int day = 1;
private long minDate; // TODO actually read minDate private long minDate; // TODO actually read minDate
private long maxDate; // TODO actually read maxDate private long maxDate; // TODO actually read maxDate

View File

@ -15,6 +15,7 @@
<nodomain.freeyourgadget.gadgetbridge.util.XDatePreference <nodomain.freeyourgadget.gadgetbridge.util.XDatePreference
app:iconSpaceReserved="false" app:iconSpaceReserved="false"
android:defaultValue="2000-01-01"
android:key="activity_user_date_of_birth" android:key="activity_user_date_of_birth"
android:title="@string/activity_prefs_date_birth" /> android:title="@string/activity_prefs_date_birth" />