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
d0a8874b
Commit
d0a8874b
authored
Jul 28, 2025
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
只在debug时显示本地卡组最后修改时间
parent
5689558d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
mobile/src/main/java/cn/garymb/ygomobile/ui/adapters/DeckListAdapter.java
...java/cn/garymb/ygomobile/ui/adapters/DeckListAdapter.java
+6
-0
mobile/src/main/java/cn/garymb/ygomobile/ui/cards/deck_square/DeckSquareApiUtil.java
...ymb/ygomobile/ui/cards/deck_square/DeckSquareApiUtil.java
+3
-3
No files found.
mobile/src/main/java/cn/garymb/ygomobile/ui/adapters/DeckListAdapter.java
View file @
d0a8874b
package
cn.garymb.ygomobile.ui.adapters
;
package
cn.garymb.ygomobile.ui.adapters
;
import
static
cn
.
garymb
.
ygomobile
.
Constants
.
DEBUG
;
import
static
cn
.
garymb
.
ygomobile
.
ui
.
cards
.
deck_square
.
DeckSquareFileUtil
.
convertToGMTDate
;
import
static
cn
.
garymb
.
ygomobile
.
ui
.
cards
.
deck_square
.
DeckSquareFileUtil
.
convertToGMTDate
;
import
android.annotation.SuppressLint
;
import
android.annotation.SuppressLint
;
...
@@ -111,6 +112,11 @@ public class DeckListAdapter<T extends TextSelect> extends BaseQuickAdapter<T, D
...
@@ -111,6 +112,11 @@ public class DeckListAdapter<T extends TextSelect> extends BaseQuickAdapter<T, D
holder
.
side
.
setTextColor
(
Color
.
RED
);
holder
.
side
.
setTextColor
(
Color
.
RED
);
}
}
holder
.
file_time
.
setText
(
convertToGMTDate
(
deckFile
.
getDate
()));
holder
.
file_time
.
setText
(
convertToGMTDate
(
deckFile
.
getDate
()));
if
(
DEBUG
)
{
holder
.
file_time
.
setVisibility
(
View
.
VISIBLE
);
}
else
{
holder
.
file_time
.
setVisibility
(
View
.
GONE
);
}
if
(
deckFile
.
getTypeName
().
equals
(
YGOUtil
.
s
(
R
.
string
.
category_pack
))
||
deckFile
.
getPath
().
contains
(
"cacheDeck"
))
{
if
(
deckFile
.
getTypeName
().
equals
(
YGOUtil
.
s
(
R
.
string
.
category_pack
))
||
deckFile
.
getPath
().
contains
(
"cacheDeck"
))
{
//卡包展示时不显示额外和副卡组数量文本
//卡包展示时不显示额外和副卡组数量文本
holder
.
ll_extra_n_side
.
setVisibility
(
View
.
GONE
);
holder
.
ll_extra_n_side
.
setVisibility
(
View
.
GONE
);
...
...
mobile/src/main/java/cn/garymb/ygomobile/ui/cards/deck_square/DeckSquareApiUtil.java
View file @
d0a8874b
...
@@ -639,7 +639,7 @@ public class DeckSquareApiUtil {
...
@@ -639,7 +639,7 @@ public class DeckSquareApiUtil {
backupDownloadDecks
.
addAll
(
onlineDecks
);
backupDownloadDecks
.
addAll
(
onlineDecks
);
for
(
MyOnlineDeckDetail
onlineDeck
:
backupDownloadDecks
)
{
for
(
MyOnlineDeckDetail
onlineDeck
:
backupDownloadDecks
)
{
LogUtil
.
w
(
TAG
,
"synchronizeDecks
(750)
+要下载的 云备份卡组: "
+
onlineDeck
.
getDeckType
()
+
"//"
+
onlineDeck
.
getDeckName
()
+
"//"
+
onlineDeck
.
getDeckUpdateDate
());
LogUtil
.
w
(
TAG
,
"synchronizeDecks +要下载的 云备份卡组: "
+
onlineDeck
.
getDeckType
()
+
"//"
+
onlineDeck
.
getDeckName
()
+
"//"
+
onlineDeck
.
getDeckUpdateDate
());
// 确保文件名包含.ydk扩展名
// 确保文件名包含.ydk扩展名
String
fileName
=
onlineDeck
.
getDeckName
();
String
fileName
=
onlineDeck
.
getDeckName
();
if
(!
fileName
.
toLowerCase
().
endsWith
(
Constants
.
YDK_FILE_EX
))
{
if
(!
fileName
.
toLowerCase
().
endsWith
(
Constants
.
YDK_FILE_EX
))
{
...
@@ -653,9 +653,9 @@ public class DeckSquareApiUtil {
...
@@ -653,9 +653,9 @@ public class DeckSquareApiUtil {
// 保存在线卡组到本地
// 保存在线卡组到本地
boolean
saved
=
DeckSquareFileUtil
.
saveFileToPath
(
fileFullPath
,
onlineDeck
.
getDeckYdk
(),
onlineDeck
.
getDeckUpdateDate
());
boolean
saved
=
DeckSquareFileUtil
.
saveFileToPath
(
fileFullPath
,
onlineDeck
.
getDeckYdk
(),
onlineDeck
.
getDeckUpdateDate
());
if
(!
saved
)
{
if
(!
saved
)
{
LogUtil
.
e
(
TAG
,
"synchronizeDecks
(761)
保存失败!的 云备份卡组: "
+
fileFullPath
);
LogUtil
.
e
(
TAG
,
"synchronizeDecks 保存失败!的 云备份卡组: "
+
fileFullPath
);
}
else
{
}
else
{
LogUtil
.
i
(
TAG
,
"synchronizeDecks
(763)
保存成功√的 云备份卡组: "
+
fileFullPath
);
LogUtil
.
i
(
TAG
,
"synchronizeDecks 保存成功√的 云备份卡组: "
+
fileFullPath
);
}
}
}
}
...
...
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