Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
YGOMobile
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fallenstardust
YGOMobile
Commits
527b0d45
Commit
527b0d45
authored
Aug 03, 2021
by
247321453
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化清理任务
parent
78406e4b
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
29 additions
and
101 deletions
+29
-101
Classes/gframe/game.cpp
Classes/gframe/game.cpp
+1
-2
libcore/src/main/AndroidManifest.xml
libcore/src/main/AndroidManifest.xml
+0
-7
libcore/src/main/java/cn/garymb/ygomobile/GameReceiver.java
libcore/src/main/java/cn/garymb/ygomobile/GameReceiver.java
+0
-34
libcore/src/main/java/cn/garymb/ygomobile/YGOMobileActivity.java
.../src/main/java/cn/garymb/ygomobile/YGOMobileActivity.java
+16
-18
libcore/src/main/java/cn/garymb/ygomobile/core/IrrlichtBridge.java
...rc/main/java/cn/garymb/ygomobile/core/IrrlichtBridge.java
+6
-3
libygo/src/main/AndroidManifest.xml
libygo/src/main/AndroidManifest.xml
+0
-7
mobile/src/main/AndroidManifest.xml
mobile/src/main/AndroidManifest.xml
+0
-4
mobile/src/main/java/cn/garymb/ygomobile/AppsSettings.java
mobile/src/main/java/cn/garymb/ygomobile/AppsSettings.java
+0
-4
mobile/src/main/java/cn/garymb/ygomobile/ui/home/HomeActivity.java
...c/main/java/cn/garymb/ygomobile/ui/home/HomeActivity.java
+6
-12
mobile/src/main/java/cn/garymb/ygomobile/ui/home/MainActivity.java
...c/main/java/cn/garymb/ygomobile/ui/home/MainActivity.java
+0
-10
No files found.
Classes/gframe/game.cpp
View file @
527b0d45
...
@@ -46,7 +46,7 @@ void Game::stopBGM() {
...
@@ -46,7 +46,7 @@ void Game::stopBGM() {
}
}
void
Game
::
playBGM
()
{
void
Game
::
playBGM
()
{
ALOGV
(
"play bgm"
);
// ALOGV("play bgm dInfo.isStarted=%d, is_building=%d", dInfo.isStarted, is_building
);
gMutex
.
lock
();
gMutex
.
lock
();
if
(
dInfo
.
isStarted
)
{
if
(
dInfo
.
isStarted
)
{
if
(
dInfo
.
isFinished
&&
showcardcode
==
1
)
if
(
dInfo
.
isFinished
&&
showcardcode
==
1
)
...
@@ -1348,7 +1348,6 @@ void Game::MainLoop() {
...
@@ -1348,7 +1348,6 @@ void Game::MainLoop() {
}
}
#endif
#endif
while
(
device
->
run
())
{
while
(
device
->
run
())
{
ALOGV
(
"game draw frame"
);
linePatternD3D
=
(
linePatternD3D
+
1
)
%
30
;
linePatternD3D
=
(
linePatternD3D
+
1
)
%
30
;
linePatternGL
=
(
linePatternGL
<<
1
)
|
(
linePatternGL
>>
15
);
linePatternGL
=
(
linePatternGL
<<
1
)
|
(
linePatternGL
>>
15
);
atkframe
+=
0.1
f
;
atkframe
+=
0.1
f
;
...
...
libcore/src/main/AndroidManifest.xml
View file @
527b0d45
...
@@ -23,13 +23,6 @@
...
@@ -23,13 +23,6 @@
android:name=
"android.app.lib_name"
android:name=
"android.app.lib_name"
android:value=
"YGOMobile"
/>
android:value=
"YGOMobile"
/>
</activity>
</activity>
<receiver
android:name=
"cn.garymb.ygomobile.GameReceiver"
android:process=
":gamehelper"
>
<intent-filter>
<action
android:name=
"cn.garymb.ygomobile.game.start"
/>
<action
android:name=
"cn.garymb.ygomobile.game.stop"
/>
</intent-filter>
</receiver>
</application>
</application>
</manifest>
</manifest>
libcore/src/main/java/cn/garymb/ygomobile/GameReceiver.java
deleted
100644 → 0
View file @
78406e4b
package
cn.garymb.ygomobile
;
import
android.content.BroadcastReceiver
;
import
android.content.Context
;
import
android.content.Intent
;
import
cn.garymb.ygomobile.core.IrrlichtBridge
;
import
static
cn
.
garymb
.
ygomobile
.
core
.
IrrlichtBridge
.
ACTION_START
;
import
static
cn
.
garymb
.
ygomobile
.
core
.
IrrlichtBridge
.
ACTION_STOP
;
public
class
GameReceiver
extends
BroadcastReceiver
{
@Override
public
void
onReceive
(
Context
context
,
Intent
intent
)
{
String
action
=
intent
.
getAction
();
if
(
ACTION_START
.
equals
(
action
))
{
//
IrrlichtBridge
.
gPid
=
intent
.
getIntExtra
(
IrrlichtBridge
.
EXTRA_PID
,
0
);
}
else
if
(
ACTION_STOP
.
equals
(
action
))
{
int
pid
=
intent
.
getIntExtra
(
IrrlichtBridge
.
EXTRA_PID
,
0
);
if
(
pid
==
0
&&
IrrlichtBridge
.
gPid
!=
0
)
{
pid
=
IrrlichtBridge
.
gPid
;
}
if
(
pid
==
0
)
{
pid
=
android
.
os
.
Process
.
myPid
();
}
try
{
android
.
os
.
Process
.
killProcess
(
pid
);
}
catch
(
Exception
e
)
{
//ignore
}
}
}
}
libcore/src/main/java/cn/garymb/ygomobile/YGOMobileActivity.java
View file @
527b0d45
...
@@ -43,8 +43,6 @@ import cn.garymb.ygomobile.widget.overlay.OverlayOvalView;
...
@@ -43,8 +43,6 @@ import cn.garymb.ygomobile.widget.overlay.OverlayOvalView;
import
cn.garymb.ygomobile.widget.overlay.OverlayView
;
import
cn.garymb.ygomobile.widget.overlay.OverlayView
;
import
static
cn
.
garymb
.
ygomobile
.
core
.
IrrlichtBridge
.
ACTION_SHARE_FILE
;
import
static
cn
.
garymb
.
ygomobile
.
core
.
IrrlichtBridge
.
ACTION_SHARE_FILE
;
import
static
cn
.
garymb
.
ygomobile
.
core
.
IrrlichtBridge
.
ACTION_START
;
import
static
cn
.
garymb
.
ygomobile
.
core
.
IrrlichtBridge
.
ACTION_STOP
;
/**
/**
* @author mabin
* @author mabin
...
@@ -132,9 +130,6 @@ public class YGOMobileActivity extends NativeActivity implements
...
@@ -132,9 +130,6 @@ public class YGOMobileActivity extends NativeActivity implements
mPM
=
(
PowerManager
)
getSystemService
(
Context
.
POWER_SERVICE
);
mPM
=
(
PowerManager
)
getSystemService
(
Context
.
POWER_SERVICE
);
mNetController
=
new
NetworkController
(
getApplicationContext
());
mNetController
=
new
NetworkController
(
getApplicationContext
());
handleExternalCommand
(
getIntent
());
handleExternalCommand
(
getIntent
());
sendBroadcast
(
new
Intent
(
ACTION_START
)
.
putExtra
(
IrrlichtBridge
.
EXTRA_PID
,
android
.
os
.
Process
.
myPid
())
.
setPackage
(
getPackageName
()));
}
}
//电池管理
//电池管理
...
@@ -195,14 +190,6 @@ public class YGOMobileActivity extends NativeActivity implements
...
@@ -195,14 +190,6 @@ public class YGOMobileActivity extends NativeActivity implements
super
.
onDestroy
();
super
.
onDestroy
();
}
}
@Override
public
void
finish
()
{
super
.
finish
();
sendBroadcast
(
new
Intent
(
ACTION_STOP
)
.
putExtra
(
IrrlichtBridge
.
EXTRA_PID
,
android
.
os
.
Process
.
myPid
())
.
setPackage
(
getPackageName
()));
}
private
void
handleExternalCommand
(
Intent
intent
)
{
private
void
handleExternalCommand
(
Intent
intent
)
{
YGOGameOptions
options
=
intent
YGOGameOptions
options
=
intent
.
getParcelableExtra
(
YGOGameOptions
.
YGO_GAME_OPTIONS_BUNDLE_KEY
);
.
getParcelableExtra
(
YGOGameOptions
.
YGO_GAME_OPTIONS_BUNDLE_KEY
);
...
@@ -551,20 +538,31 @@ public class YGOMobileActivity extends NativeActivity implements
...
@@ -551,20 +538,31 @@ public class YGOMobileActivity extends NativeActivity implements
return
;
return
;
}
}
onGameExiting
=
true
;
onGameExiting
=
true
;
Log
.
e
(
"ygomobile"
,
"game exit"
);
Log
.
e
(
IrrlichtBridge
.
TAG
,
"game exit"
);
final
Intent
intent
=
new
Intent
(
"ygomobile.intent.action.GAME"
);
final
Intent
intent
=
new
Intent
(
IrrlichtBridge
.
ACTION_OPEN_GAME_HOME
);
intent
.
addCategory
(
Intent
.
CATEGORY_DEFAULT
);
intent
.
addCategory
(
Intent
.
CATEGORY_DEFAULT
);
intent
.
addFlags
(
Intent
.
FLAG_ACTIVITY_NEW_TASK
);
intent
.
addFlags
(
Intent
.
FLAG_ACTIVITY_NEW_TASK
);
intent
.
addFlags
(
Intent
.
FLAG_ACTIVITY_RESET_TASK_IF_NEEDED
);
intent
.
addFlags
(
Intent
.
FLAG_ACTIVITY_RESET_TASK_IF_NEEDED
);
intent
.
putExtra
(
"game_exit_time"
,
System
.
currentTimeMillis
());
// intent.putExtra(IrrlichtBridge.EXTRA_PID, Process.myPid());
// intent.putExtra(IrrlichtBridge.EXTRA_TASK_ID, getTaskId());
// intent.putExtra(IrrlichtBridge.EXTRA_GAME_EXIT_TIME, System.currentTimeMillis());
intent
.
setPackage
(
getPackageName
());
intent
.
setPackage
(
getPackageName
());
runOnUiThread
(
new
Runnable
()
{
runOnUiThread
(
new
Runnable
()
{
@Override
@Override
public
void
run
()
{
public
void
run
()
{
try
{
try
{
startActivity
(
intent
);
startActivity
(
intent
);
}
catch
(
Throwable
ignore
)
{}
Log
.
d
(
IrrlichtBridge
.
TAG
,
"open home ok"
);
finishAndRemoveTask
();
}
catch
(
Throwable
e
)
{
Log
.
w
(
IrrlichtBridge
.
TAG
,
"open home"
,
e
);
}
boolean
isRoot
=
isTaskRoot
();
Log
.
d
(
IrrlichtBridge
.
TAG
,
"isRoot="
+
isRoot
+
",kill:"
+
Process
.
myPid
());
if
(
isRoot
)
{
finishAndRemoveTask
();
}
else
{
finish
();
}
Process
.
killProcess
(
Process
.
myPid
());
Process
.
killProcess
(
Process
.
myPid
());
}
}
});
});
...
...
libcore/src/main/java/cn/garymb/ygomobile/core/IrrlichtBridge.java
View file @
527b0d45
...
@@ -26,8 +26,7 @@ import static cn.garymb.ygomobile.utils.ByteUtils.byte2uint;
...
@@ -26,8 +26,7 @@ import static cn.garymb.ygomobile.utils.ByteUtils.byte2uint;
* @author mabin
* @author mabin
*/
*/
public
final
class
IrrlichtBridge
{
public
final
class
IrrlichtBridge
{
public
static
final
String
ACTION_START
=
"cn.garymb.ygomobile.game.start"
;
public
static
final
String
ACTION_OPEN_GAME_HOME
=
"ygomobile.intent.action.GAME"
;
public
static
final
String
ACTION_STOP
=
"cn.garymb.ygomobile.game.stop"
;
/**
/**
* @see #EXTRA_SHARE_FILE
* @see #EXTRA_SHARE_FILE
* @see #EXTRA_SHARE_TYPE
* @see #EXTRA_SHARE_TYPE
...
@@ -38,6 +37,11 @@ public final class IrrlichtBridge {
...
@@ -38,6 +37,11 @@ public final class IrrlichtBridge {
public
static
final
String
EXTRA_PID
=
"extras.mypid"
;
public
static
final
String
EXTRA_PID
=
"extras.mypid"
;
public
static
final
String
EXTRA_ARGV
=
"extras.argv"
;
public
static
final
String
EXTRA_ARGV
=
"extras.argv"
;
public
static
final
String
EXTRA_ARGV_TIME_OUT
=
"extras.argv_timeout"
;
public
static
final
String
EXTRA_ARGV_TIME_OUT
=
"extras.argv_timeout"
;
public
static
final
String
EXTRA_GAME_EXIT_TIME
=
"game_exit_time"
;
public
static
final
String
EXTRA_TASK_ID
=
"extras.taskid"
;
public
static
final
String
TAG
=
"ygo-java"
;
public
static
int
gPid
;
public
static
int
gPid
;
static
{
static
{
try
{
try
{
...
@@ -74,7 +78,6 @@ public final class IrrlichtBridge {
...
@@ -74,7 +78,6 @@ public final class IrrlichtBridge {
private
static
native
void
nativeSetInputFix
(
long
handle
,
int
x
,
int
y
);
private
static
native
void
nativeSetInputFix
(
long
handle
,
int
x
,
int
y
);
private
static
final
boolean
DEBUG
=
false
;
private
static
final
boolean
DEBUG
=
false
;
private
static
final
String
TAG
=
IrrlichtBridge
.
class
.
getSimpleName
();
public
static
void
setArgs
(
Intent
intent
,
String
[]
args
)
{
public
static
void
setArgs
(
Intent
intent
,
String
[]
args
)
{
intent
.
putExtra
(
EXTRA_ARGV
,
args
);
intent
.
putExtra
(
EXTRA_ARGV
,
args
);
...
...
libygo/src/main/AndroidManifest.xml
View file @
527b0d45
...
@@ -25,13 +25,6 @@
...
@@ -25,13 +25,6 @@
android:name=
"android.notch_support"
android:name=
"android.notch_support"
android:value=
"true"
/>
android:value=
"true"
/>
</activity>
</activity>
<receiver
android:name=
"cn.garymb.ygomobile.GameReceiver"
android:process=
":game"
>
<intent-filter>
<action
android:name=
"cn.garymb.ygomobile.game.start"
/>
<action
android:name=
"cn.garymb.ygomobile.game.stop"
/>
</intent-filter>
</receiver>
</application>
</application>
</manifest>
</manifest>
mobile/src/main/AndroidManifest.xml
View file @
527b0d45
...
@@ -124,10 +124,6 @@
...
@@ -124,10 +124,6 @@
android:theme=
"@style/AppTheme.Game"
android:theme=
"@style/AppTheme.Game"
tools:replace=
"android:theme"
/>
tools:replace=
"android:theme"
/>
<receiver
android:name=
"cn.garymb.ygomobile.GameReceiver"
android:enabled=
"false"
/>
<activity
<activity
android:name=
"cn.garymb.ygomobile.ui.preference.SettingsActivity"
android:name=
"cn.garymb.ygomobile.ui.preference.SettingsActivity"
android:configChanges=
"orientation|keyboardHidden|navigation|screenSize"
android:configChanges=
"orientation|keyboardHidden|navigation|screenSize"
...
...
mobile/src/main/java/cn/garymb/ygomobile/AppsSettings.java
View file @
527b0d45
...
@@ -678,8 +678,4 @@ public class AppsSettings {
...
@@ -678,8 +678,4 @@ public class AppsSettings {
// Log.i("kk", "saveTemp:" + array);
// Log.i("kk", "saveTemp:" + array);
mSharedPreferences
.
putString
(
Constants
.
PREF_LAST_ROOM_LIST
,
array
.
toString
());
mSharedPreferences
.
putString
(
Constants
.
PREF_LAST_ROOM_LIST
,
array
.
toString
());
}
}
public
boolean
isAutoCheckUpdate
(){
return
true
;
//mSharedPreferences.getBoolean(Constants.PREF_CHECK_UPDATE, false);
}
}
}
mobile/src/main/java/cn/garymb/ygomobile/ui/home/HomeActivity.java
View file @
527b0d45
package
cn.garymb.ygomobile.ui.home
;
package
cn.garymb.ygomobile.ui.home
;
import
android.content.ComponentName
;
import
android.content.Intent
;
import
android.content.Intent
;
import
android.graphics.Canvas
;
import
android.graphics.Canvas
;
import
android.graphics.Color
;
import
android.graphics.Color
;
...
@@ -63,7 +62,6 @@ import java.util.List;
...
@@ -63,7 +62,6 @@ import java.util.List;
import
cn.garymb.ygodata.YGOGameOptions
;
import
cn.garymb.ygodata.YGOGameOptions
;
import
cn.garymb.ygomobile.AppsSettings
;
import
cn.garymb.ygomobile.AppsSettings
;
import
cn.garymb.ygomobile.Constants
;
import
cn.garymb.ygomobile.Constants
;
import
cn.garymb.ygomobile.YGOMobileActivity
;
import
cn.garymb.ygomobile.YGOStarter
;
import
cn.garymb.ygomobile.YGOStarter
;
import
cn.garymb.ygomobile.bean.Deck
;
import
cn.garymb.ygomobile.bean.Deck
;
import
cn.garymb.ygomobile.bean.ServerInfo
;
import
cn.garymb.ygomobile.bean.ServerInfo
;
...
@@ -87,7 +85,6 @@ import cn.garymb.ygomobile.ui.plus.VUiKit;
...
@@ -87,7 +85,6 @@ import cn.garymb.ygomobile.ui.plus.VUiKit;
import
cn.garymb.ygomobile.ui.preference.SettingsActivity
;
import
cn.garymb.ygomobile.ui.preference.SettingsActivity
;
import
cn.garymb.ygomobile.ui.widget.Shimmer
;
import
cn.garymb.ygomobile.ui.widget.Shimmer
;
import
cn.garymb.ygomobile.ui.widget.ShimmerTextView
;
import
cn.garymb.ygomobile.ui.widget.ShimmerTextView
;
import
cn.garymb.ygomobile.utils.ComponentUtils
;
import
cn.garymb.ygomobile.utils.FileLogUtil
;
import
cn.garymb.ygomobile.utils.FileLogUtil
;
import
cn.garymb.ygomobile.utils.ScreenUtil
;
import
cn.garymb.ygomobile.utils.ScreenUtil
;
import
cn.garymb.ygomobile.utils.YGOUtil
;
import
cn.garymb.ygomobile.utils.YGOUtil
;
...
@@ -126,7 +123,6 @@ public abstract class HomeActivity extends BaseActivity implements NavigationVie
...
@@ -126,7 +123,6 @@ public abstract class HomeActivity extends BaseActivity implements NavigationVie
AnimationShake
();
AnimationShake
();
tv
=
(
ShimmerTextView
)
findViewById
(
R
.
id
.
shimmer_tv
);
tv
=
(
ShimmerTextView
)
findViewById
(
R
.
id
.
shimmer_tv
);
toggleAnimation
(
tv
);
toggleAnimation
(
tv
);
QbSdk
.
PreInitCallback
cb
=
new
QbSdk
.
PreInitCallback
()
{
QbSdk
.
PreInitCallback
cb
=
new
QbSdk
.
PreInitCallback
()
{
@Override
@Override
public
void
onViewInitFinished
(
boolean
arg0
)
{
public
void
onViewInitFinished
(
boolean
arg0
)
{
...
@@ -144,14 +140,12 @@ public abstract class HomeActivity extends BaseActivity implements NavigationVie
...
@@ -144,14 +140,12 @@ public abstract class HomeActivity extends BaseActivity implements NavigationVie
};
};
//x5内核初始化接口
//x5内核初始化接口
QbSdk
.
initX5Environment
(
this
,
cb
);
QbSdk
.
initX5Environment
(
this
,
cb
);
if
(
AppsSettings
.
get
().
isAutoCheckUpdate
())
{
if
(!
Constants
.
ACTION_OPEN_GAME
.
equals
(
getIntent
().
getAction
()))
{
if
(!
"ygomobile.intent.action.GAME"
.
equals
(
getIntent
().
getAction
()))
{
Log
.
d
(
Constants
.
TAG
,
"start check update"
);
Log
.
d
(
"kk-test"
,
"start check update"
);
//check update
//check update
Beta
.
checkUpgrade
(
false
,
false
);
Beta
.
checkUpgrade
(
false
,
false
);
}
else
{
}
else
{
Log
.
d
(
Constants
.
TAG
,
"skip check update"
);
Log
.
d
(
"kk-test"
,
"skip check update"
);
}
}
}
//初始化决斗助手
//初始化决斗助手
initDuelAssistant
();
initDuelAssistant
();
...
...
mobile/src/main/java/cn/garymb/ygomobile/ui/home/MainActivity.java
View file @
527b0d45
...
@@ -2,7 +2,6 @@ package cn.garymb.ygomobile.ui.home;
...
@@ -2,7 +2,6 @@ package cn.garymb.ygomobile.ui.home;
import
android.Manifest
;
import
android.Manifest
;
import
android.annotation.SuppressLint
;
import
android.annotation.SuppressLint
;
import
android.content.ComponentName
;
import
android.content.DialogInterface
;
import
android.content.DialogInterface
;
import
android.content.Intent
;
import
android.content.Intent
;
import
android.graphics.Color
;
import
android.graphics.Color
;
...
@@ -22,15 +21,11 @@ import java.io.IOException;
...
@@ -22,15 +21,11 @@ import java.io.IOException;
import
cn.garymb.ygomobile.AppsSettings
;
import
cn.garymb.ygomobile.AppsSettings
;
import
cn.garymb.ygomobile.Constants
;
import
cn.garymb.ygomobile.Constants
;
import
cn.garymb.ygomobile.GameUriManager
;
import
cn.garymb.ygomobile.GameUriManager
;
import
cn.garymb.ygomobile.YGOMobileActivity
;
import
cn.garymb.ygomobile.YGOStarter
;
import
cn.garymb.ygomobile.YGOStarter
;
import
cn.garymb.ygomobile.core.IrrlichtBridge
;
import
cn.garymb.ygomobile.lite.R
;
import
cn.garymb.ygomobile.lite.R
;
import
cn.garymb.ygomobile.ui.activities.PermissionsActivity
;
import
cn.garymb.ygomobile.ui.activities.WebActivity
;
import
cn.garymb.ygomobile.ui.activities.WebActivity
;
import
cn.garymb.ygomobile.ui.plus.DialogPlus
;
import
cn.garymb.ygomobile.ui.plus.DialogPlus
;
import
cn.garymb.ygomobile.ui.plus.VUiKit
;
import
cn.garymb.ygomobile.ui.plus.VUiKit
;
import
cn.garymb.ygomobile.utils.ComponentUtils
;
import
cn.garymb.ygomobile.utils.FileUtils
;
import
cn.garymb.ygomobile.utils.FileUtils
;
import
cn.garymb.ygomobile.utils.IOUtils
;
import
cn.garymb.ygomobile.utils.IOUtils
;
import
cn.garymb.ygomobile.utils.NetUtils
;
import
cn.garymb.ygomobile.utils.NetUtils
;
...
@@ -195,10 +190,6 @@ public class MainActivity extends HomeActivity {
...
@@ -195,10 +190,6 @@ public class MainActivity extends HomeActivity {
protected
void
onResume
()
{
protected
void
onResume
()
{
super
.
onResume
();
super
.
onResume
();
YGOStarter
.
onResumed
(
this
);
YGOStarter
.
onResumed
(
this
);
//如果游戏Activity已经不存在了,则
if
(!
YGOStarter
.
isGameRunning
(
getActivity
()))
{
sendBroadcast
(
new
Intent
(
IrrlichtBridge
.
ACTION_STOP
).
setPackage
(
getPackageName
()));
}
}
}
@Override
@Override
...
@@ -318,5 +309,4 @@ public class MainActivity extends HomeActivity {
...
@@ -318,5 +309,4 @@ public class MainActivity extends HomeActivity {
/* checkResourceDownload((result, isNewVersion) -> {
/* checkResourceDownload((result, isNewVersion) -> {
Toast.makeText(this, R.string.tip_reset_game_res, Toast.LENGTH_SHORT).show();
Toast.makeText(this, R.string.tip_reset_game_res, Toast.LENGTH_SHORT).show();
});*/
});*/
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment