Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
A
appzxhy
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
appzxhy
Commits
dc80bec1
Commit
dc80bec1
authored
Jun 13, 2025
by
wanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[打包]通知渠道和配置默认值修改
parent
b81e10a9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
PopupConfigBean.kt
.../main/java/com/tgv/malware/bean/config/PopupConfigBean.kt
+5
-5
MyNotificationManager.kt
...lware/business/push/notification/MyNotificationManager.kt
+1
-1
No files found.
app/src/main/java/com/tgv/malware/bean/config/PopupConfigBean.kt
View file @
dc80bec1
...
...
@@ -3,7 +3,7 @@ package com.tgv.malware.bean.config
class
PopupConfigBean
(
var
popupForegroundCanPush
:
Boolean
=
false
,
//前台是否可以推送
var
popupStatus
:
Boolean
=
fals
e
,
//推送总开关
var
popupStatus
:
Boolean
=
tru
e
,
//推送总开关
var
popupCount
:
Int
=
500
,
//推送总次数
var
isDifferNotificationId
:
Boolean
=
true
,
//推送使用不同的通知ID
var
popupLimitRangeTime
:
List
<
Int
>
=
listOf
(),
//推送限制时间
...
...
@@ -14,13 +14,13 @@ class PopupConfigBean(
var
popupHoverCount
:
Int
=
5
,
var
popupHoverDelay
:
Int
=
5000
,
var
timerS
:
Boolean
=
fals
e
,
//定时器触发推送
var
timerS
:
Boolean
=
tru
e
,
//定时器触发推送
var
timerDelay
:
Int
=
60
,
//定时器执行延迟 秒
var
timerInterval
:
Int
=
7
,
//定时器执行间隔 分钟
val
screenS
:
Boolean
=
fals
e
,
//解锁触发推送
val
alarmS
:
Boolean
=
fals
e
,
//是否闹钟触发推送
val
workS
:
Boolean
=
fals
e
,
//workManager触发推送
val
screenS
:
Boolean
=
tru
e
,
//解锁触发推送
val
alarmS
:
Boolean
=
tru
e
,
//是否闹钟触发推送
val
workS
:
Boolean
=
tru
e
,
//workManager触发推送
val
batteryS
:
Boolean
=
true
,
//电池触发通知开关
var
batteryInterval
:
Int
=
180
,
//电池推送间隔 秒(推送间隔一般大于总间隔才有意义)
...
...
app/src/main/java/com/tgv/malware/business/push/notification/MyNotificationManager.kt
View file @
dc80bec1
...
...
@@ -88,7 +88,7 @@ object MyNotificationManager {
while
(
isActive
)
{
// 尝试从队列中获取元素,最多等待 5 秒
var
bean
=
sendBeanBlockingQueue
.
poll
(
5
,
TimeUnit
.
SECONDS
)
// Log.e
(TAG, "bean=$bean")
LogEx
.
logDebug
(
TAG
,
"bean=$bean"
)
if
(
bean
!=
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