1
0
mirror of https://github.com/oliexdev/openScale.git synced 2025-08-23 00:33:09 +02:00

set the user default goal date to plus 6 months from the current date.

This commit is contained in:
OliE
2018-01-28 11:08:31 +01:00
parent 5d1659d362
commit 26549c9746

View File

@@ -93,6 +93,11 @@ public class UserSettingsActivity extends Activity {
birthdayCal.add(Calendar.YEAR, -20);
birthday = birthdayCal.getTime();
Calendar goalCal = Calendar.getInstance();
goalCal.setTime(goal_date);
goalCal.add(Calendar.MONTH, 6);
goal_date = goalCal.getTime();
txtBirthday.setText(dateFormat.format(birthday));
txtGoalDate.setText(dateFormat.format(goal_date));