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
ddfa08b7
Commit
ddfa08b7
authored
Sep 06, 2019
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
比较strings和value
parent
ed80035c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
mobile/src/main/java/cn/garymb/ygomobile/AppsSettings.java
mobile/src/main/java/cn/garymb/ygomobile/AppsSettings.java
+4
-4
No files found.
mobile/src/main/java/cn/garymb/ygomobile/AppsSettings.java
View file @
ddfa08b7
...
@@ -541,16 +541,16 @@ public class AppsSettings {
...
@@ -541,16 +541,16 @@ public class AppsSettings {
//从获得的key+value里拼接一个绝对路径
//从获得的key+value里拼接一个绝对路径
public
String
getCurLastDeckPath
()
{
public
String
getCurLastDeckPath
()
{
String
path
;
String
path
;
if
(
TextUtils
.
equals
(
Constants
.
CORE_PACK_PATH
,
getLastCategory
()))
{
if
(
TextUtils
.
equals
(
context
.
getString
(
R
.
string
.
category_pack
)
,
getLastCategory
()))
{
path
=
getResourcePath
()
+
"/"
+
getLastCategory
()
+
"/"
+
getLastDeckName
()
+
YDK_FILE_EX
;
path
=
getResourcePath
()
+
"/"
+
getLastCategory
()
+
"/"
+
getLastDeckName
()
+
YDK_FILE_EX
;
}
else
if
(
TextUtils
.
equals
(
Constants
.
WINDBOT_DECK_PATH
,
getLastCategory
())){
}
else
if
(
TextUtils
.
equals
(
context
.
getString
(
R
.
string
.
category_windbot_deck
)
,
getLastCategory
())){
path
=
getResourcePath
()
+
"/"
+
Constants
.
WINDBOT_PATH
+
"/"
+
getLastCategory
()
+
"/"
+
getLastDeckName
()
+
YDK_FILE_EX
;
path
=
getResourcePath
()
+
"/"
+
Constants
.
WINDBOT_PATH
+
"/"
+
Constants
.
WINDBOT_DECK_PATH
+
"/"
+
getLastDeckName
()
+
YDK_FILE_EX
;
}
else
if
(
TextUtils
.
equals
(
context
.
getString
(
R
.
string
.
category_Uncategorized
),
getLastCategory
())){
}
else
if
(
TextUtils
.
equals
(
context
.
getString
(
R
.
string
.
category_Uncategorized
),
getLastCategory
())){
path
=
getResourcePath
()
+
"/"
+
Constants
.
CORE_DECK_PATH
+
"/"
+
getLastDeckName
()
+
YDK_FILE_EX
;
path
=
getResourcePath
()
+
"/"
+
Constants
.
CORE_DECK_PATH
+
"/"
+
getLastDeckName
()
+
YDK_FILE_EX
;
}
else
{
}
else
{
path
=
getResourcePath
()
+
"/"
+
Constants
.
CORE_DECK_PATH
+
"/"
+
getLastCategory
()
+
"/"
+
getLastDeckName
()
+
YDK_FILE_EX
;
path
=
getResourcePath
()
+
"/"
+
Constants
.
CORE_DECK_PATH
+
"/"
+
getLastCategory
()
+
"/"
+
getLastDeckName
()
+
YDK_FILE_EX
;
}
}
mSharedPreferences
.
putString
(
Constants
.
PREF_LAST_DECK_PATH
,
path
);
//
mSharedPreferences.putString(Constants.PREF_LAST_DECK_PATH, path);
return
path
;
return
path
;
}
}
...
...
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