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
66789c18
Commit
66789c18
authored
Sep 01, 2019
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix初始化加载
parent
3726d381
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
mobile/src/main/java/cn/garymb/ygomobile/AppsSettings.java
mobile/src/main/java/cn/garymb/ygomobile/AppsSettings.java
+5
-5
No files found.
mobile/src/main/java/cn/garymb/ygomobile/AppsSettings.java
View file @
66789c18
...
...
@@ -511,11 +511,11 @@ public class AppsSettings {
//保存最后卡组绝对路径
mSharedPreferences
.
putString
(
Constants
.
PREF_LAST_DECK_PATH
,
path
);
//保存最后分类名
mSharedPreferences
.
putString
(
Constants
.
PREF_
DEF_
LAST_CATEGORY
,
DeckUtil
.
getDeckTypeName
(
path
));
mSharedPreferences
.
putString
(
Constants
.
PREF_LAST_CATEGORY
,
DeckUtil
.
getDeckTypeName
(
path
));
//保存最后卡组名
File
lastDeck
=
new
File
(
path
);
String
lastDeckName
=
IOUtils
.
tirmName
(
lastDeck
.
getName
(),
Constants
.
YDK_FILE_EX
);
mSharedPreferences
.
putString
(
Constants
.
PREF_
DEF_
LAST_YDK
,
lastDeckName
);
mSharedPreferences
.
putString
(
Constants
.
PREF_LAST_YDK
,
lastDeckName
);
Log
.
i
(
"我是最后卡组路径+最后分类+最后卡组名"
,
getLastDeckPath
()
+
"以及"
+
getLastCategory
()
+
"以及"
+
...
...
@@ -524,17 +524,17 @@ public class AppsSettings {
//获得最后卡组绝对路径
public
String
getLastDeckPath
()
{
return
mSharedPreferences
.
getString
(
Constants
.
PREF_LAST_DECK_PATH
,
null
);
return
mSharedPreferences
.
getString
(
Constants
.
PREF_LAST_DECK_PATH
,
""
);
}
//获得最后分类名
public
String
getLastCategory
()
{
return
mSharedPreferences
.
getString
(
Constants
.
PREF_
DEF_LAST_CATEGORY
,
null
);
return
mSharedPreferences
.
getString
(
Constants
.
PREF_
LAST_CATEGORY
,
Constants
.
PREF_DEF_LAST_YDK
);
}
//获得最后卡组名
public
String
getLastDeckName
()
{
return
mSharedPreferences
.
getString
(
Constants
.
PREF_
DEF_LAST_YDK
,
null
);
return
mSharedPreferences
.
getString
(
Constants
.
PREF_
LAST_YDK
,
Constants
.
PREF_DEF_LAST_YDK
);
}
public
void
saveIntSettings
(
String
key
,
int
value
)
{
...
...
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