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
b5558583
Commit
b5558583
authored
Nov 19, 2025
by
xiaoye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
e2a824ae
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
mobile/src/main/java/cn/garymb/ygomobile/ui/cards/DeckManagerFragment.java
...ava/cn/garymb/ygomobile/ui/cards/DeckManagerFragment.java
+1
-0
mobile/src/main/java/cn/garymb/ygomobile/ui/cards/deck/DeckItemUtils.java
...java/cn/garymb/ygomobile/ui/cards/deck/DeckItemUtils.java
+3
-3
No files found.
mobile/src/main/java/cn/garymb/ygomobile/ui/cards/DeckManagerFragment.java
View file @
b5558583
...
...
@@ -1603,6 +1603,7 @@ public class DeckManagerFragment extends BaseFragemnt implements RecyclerViewIte
boolean
ret
=
ydk
.
createNewFile
();
}
catch
(
Throwable
ignore
)
{
}
//新建卡组保留卡片不保留卡组id
save
(
ydk
,
true
);
loadDeckFromFile
(
ydk
);
}
...
...
mobile/src/main/java/cn/garymb/ygomobile/ui/cards/deck/DeckItemUtils.java
View file @
b5558583
...
...
@@ -117,7 +117,7 @@ class DeckItemUtils {
* @param file 原有file
* @return 如果file为null,返回false
*/
public
static
boolean
save
(
List
<
DeckItem
>
items
,
String
deck
_i
d
,
File
file
)
{
public
static
boolean
save
(
List
<
DeckItem
>
items
,
String
deck
I
d
,
File
file
)
{
FileOutputStream
outputStream
=
null
;
OutputStreamWriter
writer
=
null
;
try
{
...
...
@@ -164,8 +164,8 @@ class DeckItemUtils {
writer
.
write
((
"\n"
+
cardInfo
.
Code
).
toCharArray
());
}
}
if
(
deck
_i
d
!=
null
)
writer
.
write
((
"\n##"
+
deck
_i
d
).
toCharArray
());
if
(
deck
I
d
!=
null
)
writer
.
write
((
"\n##"
+
deck
I
d
).
toCharArray
());
writer
.
flush
();
outputStream
.
flush
();
}
catch
(
IOException
e
)
{
...
...
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