cgeo/c-geo-opensource — Issue #1021: Calendar add on does not properly exit
Author: campbeb
Created: 2012-01-22 05:10:37+00:00
State: open

If the `finish()` call is removed from the `onCreate` method, which it must be because `onCreate` will continue executing while the dialog is being shown, then it must be added for positive and negative outcomes of the dialog.

Steps to reproduce (after removing finish() from onCreate):
1. View an event cache
2. Click menu and then Add to calendar
3. Click Back arrow
4. Click menu again.

Nothing will happen because the add on is still running, just without any window showing. Hitting back a second time will return control to c:geo.

I will submit a pull request to fix this.