Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
YGOMobile-Cn-Ko-En
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-Cn-Ko-En
Commits
7da619ff
Commit
7da619ff
authored
Nov 05, 2019
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
缩短长按响应时间
arrange URL FEEDBACK
parent
544298b7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
5 deletions
+7
-5
mobile/build.gradle
mobile/build.gradle
+1
-1
mobile/src/main/java/cn/garymb/ygomobile/Constants.java
mobile/src/main/java/cn/garymb/ygomobile/Constants.java
+2
-1
mobile/src/main/java/cn/garymb/ygomobile/LocalGameHost.java
mobile/src/main/java/cn/garymb/ygomobile/LocalGameHost.java
+4
-3
No files found.
mobile/build.gradle
View file @
7da619ff
...
...
@@ -8,7 +8,7 @@ android {
applicationId
"cn.garymb.ygomobile"
minSdkVersion
21
targetSdkVersion
28
versionCode
352001
02
5
versionCode
352001
10
5
versionName
"3.5.2"
flavorDimensions
"versionCode"
vectorDrawables
.
useSupportLibrary
=
true
...
...
mobile/src/main/java/cn/garymb/ygomobile/Constants.java
View file @
7da619ff
...
...
@@ -170,6 +170,7 @@ public interface Constants {
String
URL_HELP
=
"http://note.youdao.com/noteshare?id=8ae2dc824b7dc04a95a4665a938e2251"
;
String
URL_MASTERRULE_CN
=
"https://ocg-rule.readthedocs.io/zh_CN/master/"
;
String
WIKI_SEARCH_URL
=
"https://www.ourocg.cn/S.aspx?key="
;
String
URL_FEEDBACK
=
"https://ygo233.com/bugs/ygomobile"
;
String
SERVER_FILE
=
"server_list.xml"
;
String
SHARE_FILE
=
".share_deck.png"
;
...
...
@@ -183,7 +184,7 @@ public interface Constants {
/***
* 长按删除
*/
long
LONG_PRESS_DRAG
=
9
00
;
long
LONG_PRESS_DRAG
=
6
00
;
/***
* adb shell am start -n cn.garymb.ygomobile/cn.garymb.ygomobile.ui.home.MainActivity -a ygomobile.intent.action.DECK --es android.intent.extra.TEXT 青眼白龙.ydk
* <p>
...
...
mobile/src/main/java/cn/garymb/ygomobile/LocalGameHost.java
View file @
7da619ff
...
...
@@ -33,6 +33,7 @@ import libwindbot.windbot.WindBot;
import
static
cn
.
garymb
.
ygomobile
.
Constants
.
CORE_BOT_CONF_PATH
;
import
static
cn
.
garymb
.
ygomobile
.
Constants
.
DATABASE_NAME
;
import
static
cn
.
garymb
.
ygomobile
.
Constants
.
URL_FEEDBACK
;
class
LocalGameHost
extends
GameHost
{
private
Context
context
;
...
...
@@ -144,7 +145,7 @@ class LocalGameHost extends GameHost {
maxW
=
Math
.
max
(
w1
,
h1
);
maxH
=
Math
.
min
(
w1
,
h1
);
int
notchHeight
=
config
.
getNotchHeight
();
if
(
notchHeight
>
0
&&
immerSiveMode
)
{
if
(
notchHeight
>
0
&&
immerSiveMode
)
{
maxW
-=
notchHeight
;
}
Log
.
i
(
"kk"
,
"real="
+
fullW
+
"x"
+
fullH
+
",cur="
+
actW
+
"x"
+
actH
+
",use="
+
maxW
+
"x"
+
maxH
);
...
...
@@ -238,12 +239,12 @@ class LocalGameHost extends GameHost {
}
((
TextView
)
dlg
.
findViewById
(
R
.
id
.
tv_screen_size
)).
setText
(
String
.
format
(
"r:%dx%d,a=%dx%d,k=%s, g=%dx%d,c=%dx%d"
,
size
.
getFullW
(),
size
.
getFullH
(),
size
.
getActW
(),
size
.
getActH
(),
config
.
isKeepScale
()
?
"Y"
:
"N"
,
size
.
getWidth
(),
size
.
getHeight
(),
size
.
getTouchX
(),
size
.
getTouchY
()));
size
.
getFullW
(),
size
.
getFullH
(),
size
.
getActW
(),
size
.
getActH
(),
config
.
isKeepScale
()
?
"Y"
:
"N"
,
size
.
getWidth
(),
size
.
getHeight
(),
size
.
getTouchX
(),
size
.
getTouchY
()));
dlg
.
findViewById
(
R
.
id
.
btn_report
).
setOnClickListener
((
v
)
->
{
Intent
intent
=
new
Intent
();
intent
.
setAction
(
Intent
.
ACTION_VIEW
);
intent
.
addFlags
(
Intent
.
FLAG_ACTIVITY_NEW_TASK
);
intent
.
setData
(
Uri
.
parse
(
"https://ygo233.com/bugs"
));
intent
.
setData
(
Uri
.
parse
(
Constants
.
URL_FEEDBACK
));
context
.
startActivity
(
intent
);
dlg
.
dismiss
();
});
...
...
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