mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-01-10 17:11:56 +01:00
Set default date of birth to 2000-01-01
This commit is contained in:
parent
c0883de546
commit
7893ace986
@ -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;
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
@ -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" />
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user