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
3a56e53e
Commit
3a56e53e
authored
Sep 01, 2022
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
加载卡组时置换先行密码为正式密码
parent
33ec5d6a
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
10 deletions
+25
-10
mobile/build.gradle
mobile/build.gradle
+1
-1
mobile/src/main/java/cn/garymb/ygomobile/Constants.java
mobile/src/main/java/cn/garymb/ygomobile/Constants.java
+16
-9
mobile/src/main/java/cn/garymb/ygomobile/loader/DeckLoader.java
.../src/main/java/cn/garymb/ygomobile/loader/DeckLoader.java
+8
-0
No files found.
mobile/build.gradle
View file @
3a56e53e
...
...
@@ -100,7 +100,7 @@ dependencies {
// implementation 'com.android.support:appcompat-v7:' + rootProject.ext.supportVersion
// implementation 'com.android.support:recyclerview-v7:' + rootProject.ext.supportVersion
// implementation 'com.android.support:design:' + rootProject.ext.supportVersion
implementation
'cn.hutool:hutool-all:latest.release'
implementation
'org.jdeferred:jdeferred-android-aar:1.2.4'
implementation
'com.github.bumptech.glide:glide:4.12.0'
implementation
'androidx.navigation:navigation-fragment:2.3.5'
...
...
mobile/src/main/java/cn/garymb/ygomobile/Constants.java
View file @
3a56e53e
This diff is collapsed.
Click to expand it.
mobile/src/main/java/cn/garymb/ygomobile/loader/DeckLoader.java
View file @
3a56e53e
package
cn.garymb.ygomobile.loader
;
import
static
cn
.
garymb
.
ygomobile
.
Constants
.
newIDsArray
;
import
static
cn
.
garymb
.
ygomobile
.
Constants
.
oldIDsArray
;
import
android.text.TextUtils
;
import
android.util.Log
;
import
android.util.SparseArray
;
...
...
@@ -16,6 +19,7 @@ import cn.garymb.ygomobile.bean.Deck;
import
cn.garymb.ygomobile.bean.DeckInfo
;
import
cn.garymb.ygomobile.ui.cards.deck.DeckItemType
;
import
cn.garymb.ygomobile.utils.IOUtils
;
import
cn.hutool.core.util.ArrayUtil
;
import
ocgcore.data.Card
;
import
ocgcore.data.LimitList
;
...
...
@@ -72,6 +76,10 @@ public class DeckLoader {
if
(
type
==
DeckItemType
.
MainCard
&&
deck
.
getMainCount
()
<
Constants
.
DECK_MAIN_MAX
)
{
Integer
i
=
mIds
.
get
(
id
);
if
(
i
==
null
)
{
if
(
ArrayUtil
.
contains
(
oldIDsArray
,
id
))
{
id
=
ArrayUtil
.
get
(
newIDsArray
,
id
);
Log
.
i
(
"3.10.1"
,
"看看id="
+
id
);
}
mIds
.
put
(
id
,
1
);
deck
.
addMain
(
id
);
}
else
if
(
i
<
Constants
.
CARD_MAX_COUNT
)
{
...
...
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