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:
@@ -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));
|
||||
|
||||
|
Reference in New Issue
Block a user