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
0b136090
Commit
0b136090
authored
Sep 12, 2023
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
获取先行卡失败立刻打开webactivity
translate failed toast message
parent
0bac7691
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
1 deletion
+6
-1
mobile/src/main/java/cn/garymb/ygomobile/ex_card/ExCardListFragment.java
.../java/cn/garymb/ygomobile/ex_card/ExCardListFragment.java
+3
-1
mobile/src/main/res/values-ko/strings.xml
mobile/src/main/res/values-ko/strings.xml
+1
-0
mobile/src/main/res/values-zh/strings.xml
mobile/src/main/res/values-zh/strings.xml
+1
-0
mobile/src/main/res/values/strings.xml
mobile/src/main/res/values/strings.xml
+1
-0
No files found.
mobile/src/main/java/cn/garymb/ygomobile/ex_card/ExCardListFragment.java
View file @
0b136090
package
cn.garymb.ygomobile.ex_card
;
import
static
cn
.
garymb
.
ygomobile
.
Constants
.
ASSET_SERVER_LIST
;
import
static
cn
.
garymb
.
ygomobile
.
Constants
.
URL_YGO233_ADVANCE
;
import
static
cn
.
garymb
.
ygomobile
.
Constants
.
URL_YGO233_FILE
;
import
static
cn
.
garymb
.
ygomobile
.
Constants
.
URL_YGO233_FILE_ALT
;
import
static
cn
.
garymb
.
ygomobile
.
utils
.
DownloadUtil
.
TYPE_DOWNLOAD_EXCEPTION
;
...
...
@@ -144,7 +145,8 @@ public class ExCardListFragment extends Fragment implements View.OnClickListener
}
else
if
(
ServerUtil
.
exCardState
==
ServerUtil
.
ExCardState
.
NEED_UPDATE
)
{
textDownload
.
setText
(
R
.
string
.
Download
);
}
else
if
(
ServerUtil
.
exCardState
==
ServerUtil
.
ExCardState
.
ERROR
)
{
Toast
.
makeText
(
getActivity
(),
"无法获取服务器先行卡信息"
,
Toast
.
LENGTH_LONG
).
show
();
Toast
.
makeText
(
getActivity
(),
R
.
string
.
ex_card_check_toast_message_iii
,
Toast
.
LENGTH_LONG
).
show
();
WebActivity
.
open
(
getActivity
(),
getString
(
R
.
string
.
ex_card_list_title
),
URL_YGO233_ADVANCE
);
}
}
//TODO eventbus receive event
...
...
mobile/src/main/res/values-ko/strings.xml
View file @
0b136090
...
...
@@ -44,6 +44,7 @@
<string
name=
"ex_card_report_title"
>
보고
</string>
<string
name=
"ex_card_check_toast_message"
>
이 서버에 들어가기 전에 먼저 설정에서 "프리릴리즈 카드 팩 활성화"를 클릭하십시오.
</string>
<string
name=
"ex_card_check_toast_message_ii"
>
이 서버에 들어가기 전에 먼저 프리릴리즈 카드 팩을 다운로드하십시오.
</string>
<string
name=
"ex_card_check_toast_message_iii"
>
obtain expansion cards failed, opening 233 website to download now.
</string>
<!-- settings -->
<string
name=
"settings_about"
>
정보
</string>
...
...
mobile/src/main/res/values-zh/strings.xml
View file @
0b136090
...
...
@@ -44,6 +44,7 @@
<string
name=
"ex_card_report_title"
>
反馈
</string>
<string
name=
"ex_card_check_toast_message"
>
未开启扩展卡包会在该服务器遇到未知卡,推荐开启扩展卡包后再进入
</string>
<string
name=
"ex_card_check_toast_message_ii"
>
未下载扩展卡包会在该服务器遇到未知卡,推荐下载扩展卡包后再进入
</string>
<string
name=
"ex_card_check_toast_message_iii"
>
未获取到先行卡信息,将跳转233官网下载
</string>
<!-- settings -->
<string
name=
"settings_about"
>
关于
</string>
...
...
mobile/src/main/res/values/strings.xml
View file @
0b136090
...
...
@@ -51,6 +51,7 @@
<string
name=
"ex_card_report_title"
>
Reoprt
</string>
<string
name=
"ex_card_check_toast_message"
>
before join in this server, please "used Expansions" in settings first
</string>
<string
name=
"ex_card_check_toast_message_ii"
>
before join in this server, please download expansions first
</string>
<string
name=
"ex_card_check_toast_message_iii"
>
obtain expansion cards failed, opening 233 website to download now.
</string>
<!-- settings -->
<string
name=
"settings_about"
>
About
</string>
<string
name=
"settings_about_sub_about"
>
About
</string>
...
...
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