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
056b7d36
Commit
056b7d36
authored
May 24, 2019
by
feihuaduo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化url计算算法
修复分享url无法排序的问题
parent
873fdab8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
mobile/src/main/java/cn/garymb/ygomobile/bean/Deck.java
mobile/src/main/java/cn/garymb/ygomobile/bean/Deck.java
+2
-1
mobile/src/main/java/cn/garymb/ygomobile/ui/cards/DeckManagerActivityImpl.java
...cn/garymb/ygomobile/ui/cards/DeckManagerActivityImpl.java
+5
-2
No files found.
mobile/src/main/java/cn/garymb/ygomobile/bean/Deck.java
View file @
056b7d36
...
...
@@ -4,6 +4,7 @@ import android.net.Uri;
import
android.os.Parcel
;
import
android.os.Parcelable
;
import
android.text.TextUtils
;
import
android.util.Log
;
import
java.io.File
;
import
java.util.ArrayList
;
...
...
@@ -129,7 +130,6 @@ public class Deck implements Parcelable {
//如果下张是同名卡
if
(
id1
==
id
)
{
tNum
++;
i
++;
//如果是倒数第二张就不用对比下下张卡
if
(
i
!=
ids
.
size
()-
2
)
{
id1
=
ids
.
get
(
i
+
2
);
...
...
@@ -139,6 +139,7 @@ public class Deck implements Parcelable {
i
++;
}
}
i
++;
}
//如果有同名卡
if
(
tNum
>
1
)
{
...
...
mobile/src/main/java/cn/garymb/ygomobile/ui/cards/DeckManagerActivityImpl.java
View file @
056b7d36
...
...
@@ -700,10 +700,13 @@ class DeckManagerActivityImpl extends BaseCardsAcitivity implements RecyclerView
}
else
{
if
(
mDeckAdapater
.
getYdkFile
()
==
null
)
{
inputDeckName
(
null
,
true
,
false
);
}
else
{
save
(
mDeckAdapater
.
getYdkFile
());
}
}
//保存成功后重新加载卡组
File
file
=
getSelectDeck
(
mDeckSpinner
);
if
(
file
!=
null
)
{
loadDeckFromFile
(
file
);
}
//延时一秒,等排好序再分享
new
Handler
().
postDelayed
(
new
Runnable
()
{
@Override
...
...
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