From ef39b73220affde61e62697a4b17bb062ecbebf3 Mon Sep 17 00:00:00 2001 From: Faltenreich Date: Wed, 29 Jun 2016 20:03:21 +0200 Subject: [PATCH] Revert "Fixed lifecycle of ExportActivity" This reverts commit e19fb81c49076972c3abebb8b488122a49978aed. --- .../faltenreich/diaguard/ui/activity/ExportActivity.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Diaguard/src/main/java/com/faltenreich/diaguard/ui/activity/ExportActivity.java b/Diaguard/src/main/java/com/faltenreich/diaguard/ui/activity/ExportActivity.java index b8bb505b4..32714dfef 100644 --- a/Diaguard/src/main/java/com/faltenreich/diaguard/ui/activity/ExportActivity.java +++ b/Diaguard/src/main/java/com/faltenreich/diaguard/ui/activity/ExportActivity.java @@ -78,6 +78,7 @@ public void onCreate(Bundle savedInstanceState) { protected void onResume() { super.onResume(); Events.register(this); + initializeGUI(); } @Override @@ -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() {