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
aae7778f
Commit
aae7778f
authored
Oct 23, 2019
by
kenan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix null
parent
c7e79b6a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
mobile/src/main/java/cn/garymb/ygomobile/LocalConfig.java
mobile/src/main/java/cn/garymb/ygomobile/LocalConfig.java
+12
-4
No files found.
mobile/src/main/java/cn/garymb/ygomobile/LocalConfig.java
View file @
aae7778f
...
...
@@ -36,10 +36,14 @@ public class LocalConfig {
}
public
String
getLastDeck
()
{
String
str
=
null
;
if
(
lastdeck
.
exists
())
{
return
FileUtils
.
readAllString
(
lastdeck
);
str
=
FileUtils
.
readAllString
(
lastdeck
);
}
return
null
;
if
(
str
==
null
){
str
=
Constants
.
PREF_DEF_LAST_CATEGORY
;
}
return
str
;
}
public
void
setLastDeck
(
String
deck
)
{
...
...
@@ -47,10 +51,14 @@ public class LocalConfig {
}
public
String
getLastCategory
()
{
String
str
=
null
;
if
(
lastcategory
.
exists
())
{
return
FileUtils
.
readAllString
(
lastcategory
);
str
=
FileUtils
.
readAllString
(
lastcategory
);
}
if
(
str
==
null
){
str
=
Constants
.
PREF_DEF_LAST_YDK
;
}
return
null
;
return
str
;
}
public
void
setLastCategory
(
String
category
)
{
...
...
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