Skip to content

Commit

Permalink
Revert "Fixed lifecycle of ExportActivity"
Browse files Browse the repository at this point in the history
This reverts commit e19fb81c49076972c3abebb8b488122a49978aed.
  • Loading branch information
Faltenreich committed Jun 29, 2016
1 parent e1651dc commit ef39b73
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ public void onCreate(Bundle savedInstanceState) {
protected void onResume() {
super.onResume();
Events.register(this);
initializeGUI();
}

@Override
Expand Down Expand Up @@ -107,9 +108,12 @@ public boolean onOptionsItemSelected(MenuItem item) {
public void initialize() {
dateEnd = DateTime.now();
dateStart = dateEnd.withDayOfMonth(1);
progressDialog = new ProgressDialog(this);
}

public void initializeGUI() {
buttonDateStart.setText(Helper.getDateFormat().print(dateStart));
buttonDateEnd.setText(Helper.getDateFormat().print(dateEnd));
progressDialog = new ProgressDialog(this);
checkBoxNotes.setPadding(PADDING, PADDING, PADDING, PADDING);
checkBoxNotes.setChecked(PreferenceHelper.getInstance().exportNotes());
checkBoxNotes.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
Expand Down

0 comments on commit ef39b73

Please sign in to comment.