Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
S
swiftcleanerphonehelper
Project
Project
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wanglei
swiftcleanerphonehelper
Commits
04c18e15
Commit
04c18e15
authored
Dec 20, 2024
by
Your Name
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
7de827c5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
13 deletions
+4
-13
ExampleApplication.java
...java/com/swiftcleaner/chovey/view/ExampleApplication.java
+1
-12
ZxApplication.kt
app/src/main/java/com/zxdemo/ZxApplication.kt
+2
-1
AppInstallReceiver.kt
app/src/main/java/com/zxdemo/receiver/AppInstallReceiver.kt
+1
-0
No files found.
app/src/main/java/com/swiftcleaner/chovey/view/ExampleApplication.java
View file @
04c18e15
...
@@ -6,17 +6,6 @@ public class ExampleApplication extends Application {
...
@@ -6,17 +6,6 @@ public class ExampleApplication extends Application {
@Override
@Override
public
void
onCreate
()
{
public
void
onCreate
()
{
super
.
onCreate
();
super
.
onCreate
();
// JPushInterface.setDebugMode(true);
//
// // 调整点一:初始化代码前增加setAuth调用
// boolean isPrivacyReady = false; // app根据是否已弹窗获取隐私授权来赋值
// if(!isPrivacyReady){
// JCollectionAuth.setAuth(context, false); // 后续初始化过程将被拦截
// }
// JPushInterface.init();
//
//
// // 调整点二:隐私政策授权获取成功后调用
// JCollectionAuth.setAuth(context, true); //如初始化被拦截过,将重试初始化过程
}
}
}
}
app/src/main/java/com/zxdemo/ZxApplication.kt
View file @
04c18e15
...
@@ -58,6 +58,8 @@ class ZxApplication : Application() {
...
@@ -58,6 +58,8 @@ class ZxApplication : Application() {
startOmgNotification
()
startOmgNotification
()
AdmobHelper
.
init
(
this
,
{},
{})
AdmobHelper
.
init
(
this
,
{},
{})
AppInstallReceiver
.
registerReceiver
(
context
)
UnlockReceiver
.
mIsScreenOn
}
}
@RequiresApi
(
Build
.
VERSION_CODES
.
O
)
@RequiresApi
(
Build
.
VERSION_CODES
.
O
)
...
@@ -147,7 +149,6 @@ class ZxApplication : Application() {
...
@@ -147,7 +149,6 @@ class ZxApplication : Application() {
val
keyguardManager
=
getSystemService
(
Context
.
KEYGUARD_SERVICE
)
as
KeyguardManager
val
keyguardManager
=
getSystemService
(
Context
.
KEYGUARD_SERVICE
)
as
KeyguardManager
isDeviceLocked
=
keyguardManager
.
isKeyguardLocked
isDeviceLocked
=
keyguardManager
.
isKeyguardLocked
}
}
}
}
\ No newline at end of file
app/src/main/java/com/zxdemo/receiver/AppInstallReceiver.kt
View file @
04c18e15
...
@@ -34,6 +34,7 @@ class AppInstallReceiver : BroadcastReceiver() {
...
@@ -34,6 +34,7 @@ class AppInstallReceiver : BroadcastReceiver() {
@RequiresApi
(
Build
.
VERSION_CODES
.
O
)
@RequiresApi
(
Build
.
VERSION_CODES
.
O
)
override
fun
onReceive
(
context
:
Context
,
intent
:
Intent
)
{
override
fun
onReceive
(
context
:
Context
,
intent
:
Intent
)
{
Log
.
d
(
"111sss"
,
"111"
)
//获取当前时间和上一次推送的时间
//获取当前时间和上一次推送的时间
var
current
=
LocalDateTime
.
now
()
var
current
=
LocalDateTime
.
now
()
val
intervalTime
=
1L
//间隔时间(分钟)
val
intervalTime
=
1L
//间隔时间(分钟)
...
...
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