Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
RvApp
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lify
RvApp
Commits
f6d8b0ab
Commit
f6d8b0ab
authored
Sep 26, 2019
by
linfeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug修改
parent
081602a5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
AppCookie.java
...utils/src/main/java/com/rv/component/utils/AppCookie.java
+5
-1
LocationRecord.java
.../src/main/java/com/rv/component/utils/LocationRecord.java
+5
-1
No files found.
component_utils/src/main/java/com/rv/component/utils/AppCookie.java
View file @
f6d8b0ab
...
...
@@ -19,7 +19,11 @@ public class AppCookie {
private
static
SharedPreferences
getPreference
()
{
if
(
preferences
==
null
)
{
preferences
=
weakReference
.
get
().
getSharedPreferences
(
COOKIE_FILE
,
Context
.
MODE_PRIVATE
);
synchronized
(
AppCookie
.
class
)
{
if
(
null
==
preferences
)
{
preferences
=
weakReference
.
get
().
getSharedPreferences
(
COOKIE_FILE
,
Context
.
MODE_PRIVATE
);
}
}
}
return
preferences
;
}
...
...
component_utils/src/main/java/com/rv/component/utils/LocationRecord.java
View file @
f6d8b0ab
...
...
@@ -19,7 +19,11 @@ public class LocationRecord {
private
static
SharedPreferences
getPreference
(
Context
context
)
{
if
(
preferences
==
null
)
{
preferences
=
context
.
getSharedPreferences
(
FILE_NAME
,
Context
.
MODE_PRIVATE
);
synchronized
(
LocationRecord
.
class
)
{
if
(
null
==
preferences
)
{
preferences
=
context
.
getSharedPreferences
(
FILE_NAME
,
Context
.
MODE_PRIVATE
);
}
}
}
return
preferences
;
}
...
...
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