Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
YGOMobile-Cn-Ko-En
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-Cn-Ko-En
Commits
42526eb1
Commit
42526eb1
authored
Sep 01, 2025
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
在线备份为空时不执行比较排序
parent
a6a2506e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
9 deletions
+12
-9
mobile/src/main/java/cn/garymb/ygomobile/ui/cards/deck_square/api_response/MyDeckResponse.java
...ile/ui/cards/deck_square/api_response/MyDeckResponse.java
+12
-9
No files found.
mobile/src/main/java/cn/garymb/ygomobile/ui/cards/deck_square/api_response/MyDeckResponse.java
View file @
42526eb1
...
@@ -25,15 +25,18 @@ public class MyDeckResponse {
...
@@ -25,15 +25,18 @@ public class MyDeckResponse {
public
List
<
MyOnlineDeckDetail
>
getData
()
{
public
List
<
MyOnlineDeckDetail
>
getData
()
{
//根据deckType排序,提高观感
//根据deckType排序,提高观感
data
.
sort
((
o1
,
o2
)
->
{
if
(!
data
.
isEmpty
()
||
data
!=
null
)
{
String
type1
=
o1
.
getDeckType
();
data
.
sort
((
o1
,
o2
)
->
{
String
type2
=
o2
.
getDeckType
();
String
type1
=
o1
.
getDeckType
();
String
type2
=
o2
.
getDeckType
();
if
(
type1
==
null
&&
type2
==
null
)
return
0
;
if
(
type1
==
null
)
return
1
;
if
(
type1
==
null
&&
type2
==
null
)
return
0
;
if
(
type2
==
null
)
return
-
1
;
if
(
type1
==
null
)
return
1
;
return
type1
.
compareTo
(
type2
);
if
(
type2
==
null
)
return
-
1
;
});
return
type1
.
compareTo
(
type2
);
});
}
return
data
;
return
data
;
}
}
...
...
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