Merge pull request #1305 from triplem/fix_stackoverflow

Fix stackoverflow
This commit is contained in:
Milos Kozak 2018-08-05 23:08:29 +02:00 committed by GitHub
commit 409acd0721
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -143,7 +143,9 @@ public class ImportExportPrefs {
MainApp.instance().stopKeepAliveService();
MainApp.bus().post(new EventAppExit());
MainApp.closeDbHelper();
// context.finish();
if (context instanceof Activity) {
((Activity)context).finish();
}
System.runFinalization();
System.exit(0);
}