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
85c93c54
Commit
85c93c54
authored
Sep 26, 2021
by
qq247321453
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
provider
parent
050e000c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
1 deletion
+10
-1
libcore/src/main/java/cn/garymb/ygomobile/YGOMobileActivity.java
.../src/main/java/cn/garymb/ygomobile/YGOMobileActivity.java
+8
-0
mobile/build.gradle
mobile/build.gradle
+1
-0
mobile/src/main/AndroidManifest.xml
mobile/src/main/AndroidManifest.xml
+1
-1
No files found.
libcore/src/main/java/cn/garymb/ygomobile/YGOMobileActivity.java
View file @
85c93c54
...
@@ -468,6 +468,7 @@ public class YGOMobileActivity extends GameActivity implements
...
@@ -468,6 +468,7 @@ public class YGOMobileActivity extends GameActivity implements
});
});
}
}
private
long
lasttime
;
@Override
@Override
public
boolean
onKeyDown
(
int
keyCode
,
KeyEvent
event
)
{
public
boolean
onKeyDown
(
int
keyCode
,
KeyEvent
event
)
{
...
@@ -503,6 +504,13 @@ public class YGOMobileActivity extends GameActivity implements
...
@@ -503,6 +504,13 @@ public class YGOMobileActivity extends GameActivity implements
mGlobalEditText
.
dismiss
();
mGlobalEditText
.
dismiss
();
return
;
return
;
}
}
if
(
lasttime
==
0
||
(
System
.
currentTimeMillis
()
-
lasttime
)
<
1000
)
{
lasttime
=
System
.
currentTimeMillis
();
Toast
.
makeText
(
this
,
R
.
string
.
tip_please_quit_in_game
,
Toast
.
LENGTH_SHORT
).
show
();
return
;
}
// super.onWindowFocusChanged(false);
// onGameExit();
}
}
@Override
@Override
...
...
mobile/build.gradle
View file @
85c93c54
...
@@ -40,6 +40,7 @@ android {
...
@@ -40,6 +40,7 @@ android {
buildTypes
{
buildTypes
{
debug
{
debug
{
debuggable
false
debuggable
false
applicationIdSuffix
".debug"
buildConfigField
'boolean'
,
'DEBUG_MODE'
,
'true'
buildConfigField
'boolean'
,
'DEBUG_MODE'
,
'true'
}
}
release
{
release
{
...
...
mobile/src/main/AndroidManifest.xml
View file @
85c93c54
...
@@ -194,7 +194,7 @@
...
@@ -194,7 +194,7 @@
<!-- 如果已经安装过原版YGOMobile,请注释掉或修改成其他,否则会导致无法安装 -->
<!-- 如果已经安装过原版YGOMobile,请注释掉或修改成其他,否则会导致无法安装 -->
<provider
<provider
android:name=
"cn.garymb.ygomobile.ui.preference.YGOPreferencesProvider"
android:name=
"cn.garymb.ygomobile.ui.preference.YGOPreferencesProvider"
android:authorities=
"
cn.garymb.ygomobile
.ui.preference.YGOPreferencesProvider"
android:authorities=
"
${applicationId}
.ui.preference.YGOPreferencesProvider"
android:exported=
"false"
android:exported=
"false"
android:grantUriPermissions=
"true"
/>
android:grantUriPermissions=
"true"
/>
<provider
<provider
...
...
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