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
8e1303d4
Commit
8e1303d4
authored
Feb 08, 2025
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新日志的教程按钮改为打开用户隐私政策
parent
14095533
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
18 deletions
+27
-18
mobile/assets/changelog.html
mobile/assets/changelog.html
+3
-2
mobile/src/main/java/cn/garymb/ygomobile/ui/home/MainActivity.java
...c/main/java/cn/garymb/ygomobile/ui/home/MainActivity.java
+24
-16
No files found.
mobile/assets/changelog.html
View file @
8e1303d4
...
@@ -41,8 +41,9 @@
...
@@ -41,8 +41,9 @@
</pre>
</pre>
<h3
style=
"color:#ff0000"
>
注意
</h3>
<h3
style=
"color:#ff0000"
>
注意
</h3>
<pre>
<pre>
①:目前32位CPU的手机不能使用单机人机,可以打在线人机。
①:请注意阅读用户隐私政策;
②:安装本软件时会根据系统语言来设置ygopro的语言,如果觉得不便可以在"我的"里修改资料语言;
②:安装本软件时会根据系统语言来设置ygopro的语言,
如果觉得不便可以在"我的"里修改资料语言;
③:卸载本软件将删除包含卡组在内的重要文件,卸载前请慎重;
③:卸载本软件将删除包含卡组在内的重要文件,卸载前请慎重;
</pre>
</pre>
</body>
</body>
...
...
mobile/src/main/java/cn/garymb/ygomobile/ui/home/MainActivity.java
View file @
8e1303d4
...
@@ -86,24 +86,32 @@ public class MainActivity extends HomeActivity implements BottomNavigationBar.On
...
@@ -86,24 +86,32 @@ public class MainActivity extends HomeActivity implements BottomNavigationBar.On
dialog
.
showTitleBar
();
dialog
.
showTitleBar
();
dialog
.
setTitle
(
getString
(
R
.
string
.
settings_about_change_log
));
dialog
.
setTitle
(
getString
(
R
.
string
.
settings_about_change_log
));
dialog
.
loadUrl
(
"file:///android_asset/changelog.html"
,
Color
.
TRANSPARENT
);
dialog
.
loadUrl
(
"file:///android_asset/changelog.html"
,
Color
.
TRANSPARENT
);
dialog
.
setLeftButtonText
(
R
.
string
.
help
);
dialog
.
setLeftButtonText
(
R
.
string
.
user_privacy_policy
);
dialog
.
setLeftButtonListener
((
dlg
,
i
)
->
{
dialog
.
setLeftButtonListener
((
dlg
,
i
)
->
{
dialog
.
setContentView
(
R
.
layout
.
dialog_help
);
dialog
.
dismiss
();
dialog
.
setTitle
(
R
.
string
.
question
);
final
DialogPlus
dialogPlus
=
new
DialogPlus
(
this
);
dialog
.
hideButton
();
dialogPlus
.
setTitle
(
R
.
string
.
user_privacy_policy
);
dialog
.
show
();
//根据系统语言复制特定资料文件
View
viewDialog
=
dialog
.
getContentView
();
String
language
=
getContext
().
getResources
().
getConfiguration
().
locale
.
getLanguage
();
Button
btnMasterRule
=
viewDialog
.
findViewById
(
R
.
id
.
masterrule
);
String
fileaddr
=
""
;
Button
btnTutorial
=
viewDialog
.
findViewById
(
R
.
id
.
tutorial
);
if
(!
language
.
isEmpty
())
{
if
(
language
.
equals
(
AppsSettings
.
languageEnum
.
Chinese
.
name
))
{
btnMasterRule
.
setOnClickListener
((
v
)
->
{
fileaddr
=
"file:///android_asset/user_Privacy_Policy_CN.html"
;
WebActivity
.
open
(
this
,
getString
(
R
.
string
.
masterrule
),
Constants
.
URL_MASTER_RULE_CN
);
}
else
if
(
language
.
equals
(
AppsSettings
.
languageEnum
.
Korean
.
name
))
{
dialog
.
dismiss
();
fileaddr
=
"file:///android_asset/user_Privacy_Policy_KO.html"
;
});
}
else
if
(
language
.
equals
(
AppsSettings
.
languageEnum
.
Spanish
.
name
))
{
btnTutorial
.
setOnClickListener
((
v
)
->
{
fileaddr
=
"file:///android_asset/user_Privacy_Policy_ES.html"
;
WebActivity
.
open
(
this
,
getString
(
R
.
string
.
help
),
Constants
.
URL_HELP
);
}
else
if
(
language
.
equals
(
AppsSettings
.
languageEnum
.
Japanese
))
{
dialog
.
dismiss
();
fileaddr
=
"file:///android_asset/user_Privacy_Policy_JP.html"
;
}
else
{
fileaddr
=
"file:///android_asset/user_Privacy_Policy_EN.html"
;
}
}
dialogPlus
.
loadUrl
(
fileaddr
,
Color
.
TRANSPARENT
);
dialogPlus
.
setRightButtonListener
((
dialogInterface
,
ii
)
->
{
dialogPlus
.
dismiss
();
});
});
dialogPlus
.
show
();
});
});
dialog
.
setRightButtonText
(
R
.
string
.
OK
);
dialog
.
setRightButtonText
(
R
.
string
.
OK
);
dialog
.
setRightButtonListener
((
dlg
,
i
)
->
{
dialog
.
setRightButtonListener
((
dlg
,
i
)
->
{
...
...
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