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
09607413
Commit
09607413
authored
Nov 14, 2025
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tweak
parent
f1343cf5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
mobile/src/main/java/cn/garymb/ygomobile/ui/cards/DeckManagerFragment.java
...ava/cn/garymb/ygomobile/ui/cards/DeckManagerFragment.java
+6
-0
mobile/src/main/res/drawable-xhdpi/replay.png
mobile/src/main/res/drawable-xhdpi/replay.png
+0
-0
No files found.
mobile/src/main/java/cn/garymb/ygomobile/ui/cards/DeckManagerFragment.java
View file @
09607413
...
@@ -327,18 +327,24 @@ public class DeckManagerFragment extends BaseFragemnt implements RecyclerViewIte
...
@@ -327,18 +327,24 @@ public class DeckManagerFragment extends BaseFragemnt implements RecyclerViewIte
/**
/**
* 自动同步服务器上的卡组信息(如果已登录)
* 自动同步服务器上的卡组信息(如果已登录)
*/
*/
// 如果用户已登录(存在服务器令牌),则同步用户的在线卡组
if
(
SharedPreferenceUtil
.
getServerToken
()
!=
null
)
{
if
(
SharedPreferenceUtil
.
getServerToken
()
!=
null
)
{
VUiKit
.
defer
().
when
(()
->
{
VUiKit
.
defer
().
when
(()
->
{
try
{
try
{
// 调用API同步卡组
DeckSquareApiUtil
.
synchronizeDecks
();
DeckSquareApiUtil
.
synchronizeDecks
();
}
catch
(
IOException
e
)
{
}
catch
(
IOException
e
)
{
// 发生IO异常时返回异常对象
return
e
;
return
e
;
}
}
// 正常执行完成后返回0表示成功
return
0
;
return
0
;
}).
fail
((
e
)
->
{
}).
fail
((
e
)
->
{
// 同步失败时记录错误日志
LogUtil
.
e
(
TAG
,
"Sync decks failed: "
+
e
);
LogUtil
.
e
(
TAG
,
"Sync decks failed: "
+
e
);
//YGOUtil.showTextToast("Sync decks failed: " + e);
//YGOUtil.showTextToast("Sync decks failed: " + e);
}).
done
((
result
)
->
{
}).
done
((
result
)
->
{
// 同步成功后的处理逻辑(目前为空)
});
});
}
}
}
}
...
...
mobile/src/main/res/drawable-xhdpi/replay.png
View replaced file @
f1343cf5
View file @
09607413
46.3 KB
|
W:
|
H:
47.3 KB
|
W:
|
H:
2-up
Swipe
Onion skin
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