Skip to content

Commit 86dcb0d

Browse files
author
Daniel Moreno
committed
Changed to terminateActivityStack to prevent reopening.
1 parent 60d8293 commit 86dcb0d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

android/src/com/sttts/exit/TiExitModule.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ public static void onAppCreate(TiApplication app)
3636
@Kroll.method
3737
public void exit(int code)
3838
{
39-
System.runFinalizersOnExit(true);
40-
System.exit(code);
39+
((TiApplication)getActivity().getApplication()).terminateActivityStack();
4140

4241
return;
4342
}

0 commit comments

Comments
 (0)