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
8130d0c4
Commit
8130d0c4
authored
Jan 22, 2020
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新tips
parent
611d04ed
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
3 deletions
+5
-3
mobile/src/main/java/cn/garymb/ygomobile/ui/cards/CardDetail.java
...rc/main/java/cn/garymb/ygomobile/ui/cards/CardDetail.java
+2
-3
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/ui/cards/CardDetail.java
View file @
8130d0c4
...
@@ -321,7 +321,7 @@ public class CardDetail extends BaseAdapterPlus.BaseViewHolder {
...
@@ -321,7 +321,7 @@ public class CardDetail extends BaseAdapterPlus.BaseViewHolder {
photoView
.
setOnLongClickListener
(
new
View
.
OnLongClickListener
()
{
photoView
.
setOnLongClickListener
(
new
View
.
OnLongClickListener
()
{
@Override
@Override
public
boolean
onLongClick
(
View
v
)
{
public
boolean
onLongClick
(
View
v
)
{
if
(!
isDownloadCardImage
)
if
(!
isDownloadCardImage
||
cardManager
.
getCard
(
code
)
==
null
)
return
false
;
return
false
;
DialogPlus
dialogPlus
=
new
DialogPlus
(
context
);
DialogPlus
dialogPlus
=
new
DialogPlus
(
context
);
dialogPlus
.
setMessage
(
R
.
string
.
tip_redownload
);
dialogPlus
.
setMessage
(
R
.
string
.
tip_redownload
);
...
@@ -338,7 +338,6 @@ public class CardDetail extends BaseAdapterPlus.BaseViewHolder {
...
@@ -338,7 +338,6 @@ public class CardDetail extends BaseAdapterPlus.BaseViewHolder {
@Override
@Override
public
void
onClick
(
DialogInterface
dialog
,
int
which
)
{
public
void
onClick
(
DialogInterface
dialog
,
int
which
)
{
dialog
.
dismiss
();
dialog
.
dismiss
();
downloadCardImage
(
code
,
file
);
downloadCardImage
(
code
,
file
);
}
}
});
});
...
@@ -358,7 +357,7 @@ public class CardDetail extends BaseAdapterPlus.BaseViewHolder {
...
@@ -358,7 +357,7 @@ public class CardDetail extends BaseAdapterPlus.BaseViewHolder {
private
void
downloadCardImage
(
int
code
,
File
file
)
{
private
void
downloadCardImage
(
int
code
,
File
file
)
{
if
(
cardManager
.
getCard
(
code
)
==
null
)
{
if
(
cardManager
.
getCard
(
code
)
==
null
)
{
YGOUtil
.
show
(
"先行卡没有高清卡图"
);
YGOUtil
.
show
(
context
.
getString
(
R
.
string
.
tip_expansions_image
)
);
return
;
return
;
}
}
isDownloadCardImage
=
false
;
isDownloadCardImage
=
false
;
...
...
mobile/src/main/res/values-ko/strings.xml
View file @
8130d0c4
...
@@ -275,4 +275,5 @@
...
@@ -275,4 +275,5 @@
<string
name=
"tip_redownload"
>
카드를 다시 다운로드하겠습니까?
</string>
<string
name=
"tip_redownload"
>
카드를 다시 다운로드하겠습니까?
</string>
<string
name=
"already_top"
>
첫번째
</string>
<string
name=
"already_top"
>
첫번째
</string>
<string
name=
"already_end"
>
마지막
</string>
<string
name=
"already_end"
>
마지막
</string>
<string
name=
"tip_expansions_image"
>
카드의 고화질 이미지가 없습니다.
</string>
</resources>
</resources>
mobile/src/main/res/values-zh/strings.xml
View file @
8130d0c4
...
@@ -274,4 +274,5 @@
...
@@ -274,4 +274,5 @@
<string
name=
"already_top"
>
已经是第一张啦
</string>
<string
name=
"already_top"
>
已经是第一张啦
</string>
<string
name=
"already_end"
>
已经是最后一张啦
</string>
<string
name=
"already_end"
>
已经是最后一张啦
</string>
<string
name=
"tip_redownload"
>
重新下载?
</string>
<string
name=
"tip_redownload"
>
重新下载?
</string>
<string
name=
"tip_expansions_image"
>
非自带卡片没有大图
</string>
</resources>
</resources>
mobile/src/main/res/values/strings.xml
View file @
8130d0c4
...
@@ -277,4 +277,5 @@
...
@@ -277,4 +277,5 @@
<string
name=
"already_top"
>
Already the first card
</string>
<string
name=
"already_top"
>
Already the first card
</string>
<string
name=
"already_end"
>
Already the last card
</string>
<string
name=
"already_end"
>
Already the last card
</string>
<string
name=
"tip_redownload"
>
Redownload\?
</string>
<string
name=
"tip_redownload"
>
Redownload\?
</string>
<string
name=
"tip_expansions_image"
>
no Large image for pre-released data
</string>
</resources>
</resources>
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