Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
apk_product
/
ForFun
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
e73ff8eb
...
e73ff8ebe5c613845f8a6ac2c57160985bce3b37
authored
2020-04-22 10:57:06 +0800
by
金学艇
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
大厅不在前台就自杀(合并主分支有点麻烦,直接在该分支修改)
1 parent
4a8de896
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
build/jsb-link/frameworks/runtime-src/proj.android-studio/app/src/org/cocos2dx/javascript/AppActivity.java
build/jsb-link/frameworks/runtime-src/proj.android-studio/app/src/org/cocos2dx/javascript/AppActivity.java
View file @
e73ff8e
...
...
@@ -396,6 +396,10 @@ public class AppActivity extends Cocos2dxActivity {
@Override
protected
void
onPause
()
{
// Log.d("AppActivity", "onPause()....");
//界面不在前台就自杀
AppActivity
.
this
.
finish
();
System
.
exit
(
0
);
android
.
os
.
Process
.
killProcess
(
android
.
os
.
Process
.
myPid
());
// mRLSingleColor.setVisibility(View.VISIBLE); //放到启动游戏时显示
// setTheme(android.R.style.Theme_NoDisplay);
super
.
onPause
();
...
...
Please
register
or
sign in
to post a comment