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
9d8086b5
Commit
9d8086b5
authored
Oct 18, 2022
by
fallenstardust
Committed by
GitHub
Oct 18, 2022
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #74 from mercury233/patch-pre-download-page
update pre download page
parents
6505490a
85675d7a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
2 deletions
+16
-2
mobile/src/main/java/cn/garymb/ygomobile/ui/activities/WebActivity.java
...n/java/cn/garymb/ygomobile/ui/activities/WebActivity.java
+1
-1
mobile/src/main/java/cn/garymb/ygomobile/ui/home/HomeFragment.java
...c/main/java/cn/garymb/ygomobile/ui/home/HomeFragment.java
+5
-1
mobile/src/main/java/cn/garymb/ygomobile/ui/mycard/X5WebView.java
...rc/main/java/cn/garymb/ygomobile/ui/mycard/X5WebView.java
+10
-0
No files found.
mobile/src/main/java/cn/garymb/ygomobile/ui/activities/WebActivity.java
View file @
9d8086b5
...
...
@@ -134,7 +134,7 @@ public class WebActivity extends BaseActivity {
});*/
if
(
doIntent
(
getIntent
()))
{
mWebViewPlus
.
loadUrl
(
mUrl
);
if
(
mUrl
.
equals
(
URL_YGO233_ADVANCE
))
{
if
(
mUrl
.
startsWith
(
URL_YGO233_ADVANCE
))
{
btn_download
.
setVisibility
(
View
.
VISIBLE
);
}
else
{
btn_download
.
setVisibility
(
View
.
GONE
);
...
...
mobile/src/main/java/cn/garymb/ygomobile/ui/home/HomeFragment.java
View file @
9d8086b5
...
...
@@ -703,7 +703,11 @@ public class HomeFragment extends BaseFragemnt implements OnDuelAssistantListene
YGOStarter
.
startGame
(
getActivity
(),
null
,
"-k"
,
"-s"
);
break
;
case
R
.
id
.
action_download_ex
:
WebActivity
.
open
(
getContext
(),
getString
(
R
.
string
.
action_download_expansions
),
Constants
.
URL_YGO233_ADVANCE
);
String
aurl
=
Constants
.
URL_YGO233_ADVANCE
;
if
(
ll_new_notice
.
getVisibility
()
==
View
.
VISIBLE
)
{
aurl
=
aurl
+
"#pre_update_title"
;
}
WebActivity
.
open
(
getContext
(),
getString
(
R
.
string
.
action_download_expansions
),
aurl
);
ll_new_notice
.
setVisibility
(
View
.
GONE
);
break
;
case
R
.
id
.
action_help
:
{
...
...
mobile/src/main/java/cn/garymb/ygomobile/ui/mycard/X5WebView.java
View file @
9d8086b5
package
cn.garymb.ygomobile.ui.mycard
;
import
cn.garymb.ygomobile.lite.BuildConfig
;
import
java.text.MessageFormat
;
import
android.annotation.SuppressLint
;
import
android.content.Context
;
...
...
@@ -69,6 +72,13 @@ public class X5WebView extends WebView {
setHorizontalScrollBarEnabled
(
false
);
webSetting
.
setAllowContentAccess
(
true
);
webSetting
.
setMixedContentMode
(
WebSettings
.
LOAD_NORMAL
);
webSetting
.
setUserAgentString
(
webSetting
.
getUserAgentString
()
+
MessageFormat
.
format
(
" YGOMobile/{0} ({1} {2,number,#})"
,
BuildConfig
.
VERSION_NAME
,
BuildConfig
.
APPLICATION_ID
,
BuildConfig
.
VERSION_CODE
));
}
@Override
...
...
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