We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b606f2a commit 1444263Copy full SHA for 1444263
cocos/platform/android/java/src/org/cocos2dx/lib/Cocos2dxHelper.java
@@ -378,6 +378,10 @@ public static void onPause() {
378
}
379
380
public static void terminateProcess() {
381
+ // Remove it from recent apps.
382
+ if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
383
+ sActivity.finishAndRemoveTask();
384
+ }
385
android.os.Process.killProcess(android.os.Process.myPid());
386
387
0 commit comments