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
7fee4fd6
Commit
7fee4fd6
authored
Jan 21, 2025
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
为了整齐需要,调用CardLoader的sort方法排序List<Card>
parent
6b1b9db6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
mobile/src/main/java/cn/garymb/ygomobile/ui/cards/CardDetail.java
...rc/main/java/cn/garymb/ygomobile/ui/cards/CardDetail.java
+0
-1
mobile/src/main/java/cn/garymb/ygomobile/ui/cards/CardSearchFragment.java
...java/cn/garymb/ygomobile/ui/cards/CardSearchFragment.java
+2
-2
No files found.
mobile/src/main/java/cn/garymb/ygomobile/ui/cards/CardDetail.java
View file @
7fee4fd6
...
...
@@ -354,7 +354,6 @@ public class CardDetail extends BaseAdapterPlus.BaseViewHolder {
stack
.
pop
();
if
(
stack
.
isEmpty
())
{
String
quotedText
=
text
.
substring
(
start
,
i
).
trim
();
Log
.
d
(
"cc quotedText"
,
quotedText
);
applySpan
(
spannableString
,
start
,
i
,
queryable
(
quotedText
)?
YGOUtil
.
c
(
R
.
color
.
holo_blue_bright
)
:
Color
.
WHITE
);
currentQuoteType
=
QuoteType
.
NONE
;
}
else
{
...
...
mobile/src/main/java/cn/garymb/ygomobile/ui/cards/CardSearchFragment.java
View file @
7fee4fd6
...
...
@@ -398,7 +398,7 @@ public class CardSearchFragment extends BaseFragemnt implements CardLoader.CallB
// 确保 matchingCards 不为空时调用 onSearchResult
if
(!
matchingCards
.
isEmpty
())
{
onSearchResult
(
m
atchingCards
,
false
);
onSearchResult
(
m
CardLoader
.
sort
(
matchingCards
),
false
);
//为了整齐需要,调用CardLoader的sort方法排序List<Card>
}
else
{
Log
.
w
(
"cc"
,
"No related card found"
);
}
...
...
@@ -410,7 +410,7 @@ public class CardSearchFragment extends BaseFragemnt implements CardLoader.CallB
List
<
Card
>
packList
=
mPackManager
.
getCards
(
mCardLoader
,
idToUse
);
if
(
packList
!=
null
)
{
onSearchResult
(
packList
,
false
);
onSearchResult
(
packList
,
false
);
//为了保持原packlist的收录顺序,不调用CardLoader的sort方法排序List<Card>
}
else
{
Log
.
w
(
"cc"
,
"No pack found for the given ID/Alias: "
+
idToUse
);
}
...
...
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