Should fix stackoverflow
This commit is contained in:
parent
ff30d9af80
commit
b7ffb2c847
1 changed files with 3 additions and 1 deletions
|
@ -143,7 +143,9 @@ public class ImportExportPrefs {
|
||||||
MainApp.instance().stopKeepAliveService();
|
MainApp.instance().stopKeepAliveService();
|
||||||
MainApp.bus().post(new EventAppExit());
|
MainApp.bus().post(new EventAppExit());
|
||||||
MainApp.closeDbHelper();
|
MainApp.closeDbHelper();
|
||||||
// context.finish();
|
if (context instanceof Activity) {
|
||||||
|
((Activity)context).finish();
|
||||||
|
}
|
||||||
System.runFinalization();
|
System.runFinalization();
|
||||||
System.exit(0);
|
System.exit(0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue