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
9bc95366
Commit
9bc95366
authored
Jul 03, 2025
by
wanglei
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/quick-phone-clean' into quick-phone-clean
parents
682db73e
b32a3d41
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
7 deletions
+11
-7
AndroidManifest.xml
app/src/main/AndroidManifest.xml
+4
-0
PopupConfigBean.kt
.../java/com/ritoq/quickphone/bean/config/PopupConfigBean.kt
+5
-5
MyNotificationManager.kt
...phone/business/push/notification/MyNotificationManager.kt
+0
-1
NotificationUiUtil.kt
...ickphone/business/push/notification/NotificationUiUtil.kt
+2
-1
No files found.
app/src/main/AndroidManifest.xml
View file @
9bc95366
...
@@ -20,6 +20,9 @@
...
@@ -20,6 +20,9 @@
<uses-permission
android:name=
"android.permission.RECEIVE_BOOT_COMPLETED"
/>
<uses-permission
android:name=
"android.permission.RECEIVE_BOOT_COMPLETED"
/>
<uses-permission
android:name=
"android.permission.REQUEST_DELETE_PACKAGES"
/>
<uses-permission
android:name=
"android.permission.REQUEST_DELETE_PACKAGES"
/>
<uses-permission
android:name=
"android.permission.ACCESS_NETWORK_STATE"
/>
<uses-permission
android:name=
"android.permission.ACCESS_NETWORK_STATE"
/>
<uses-permission
android:name=
"android.permission.FOREGROUND_SERVICE"
/>
<uses-permission
android:name=
"android.permission.FOREGROUND_SERVICE_DATA_SYNC"
/>
<queries>
<queries>
<intent>
<intent>
...
@@ -189,6 +192,7 @@
...
@@ -189,6 +192,7 @@
<data
android:scheme=
"file"
/>
<data
android:scheme=
"file"
/>
</intent-filter>
</intent-filter>
</receiver>
</receiver>
``
<service
<service
android:name=
".business.service.StayJobService"
android:name=
".business.service.StayJobService"
...
...
app/src/main/java/com/ritoq/quickphone/bean/config/PopupConfigBean.kt
View file @
9bc95366
...
@@ -2,7 +2,7 @@ package com.ritoq.quickphone.bean.config
...
@@ -2,7 +2,7 @@ package com.ritoq.quickphone.bean.config
class
PopupConfigBean
(
class
PopupConfigBean
(
var
popupStatus
:
Boolean
=
fals
e
,
//推送总开关
var
popupStatus
:
Boolean
=
tru
e
,
//推送总开关
var
popupForegroundCanPush
:
Boolean
=
false
,
//前台是否可以推送
var
popupForegroundCanPush
:
Boolean
=
false
,
//前台是否可以推送
var
popupCount
:
Int
=
500
,
//推送总次数
var
popupCount
:
Int
=
500
,
//推送总次数
var
isDifferNotificationId
:
Boolean
=
true
,
//推送使用不同的通知ID
var
isDifferNotificationId
:
Boolean
=
true
,
//推送使用不同的通知ID
...
@@ -14,13 +14,13 @@ class PopupConfigBean(
...
@@ -14,13 +14,13 @@ class PopupConfigBean(
var
popupHoverCount
:
Int
=
5
,
var
popupHoverCount
:
Int
=
5
,
var
popupHoverDelay
:
Int
=
5000
,
var
popupHoverDelay
:
Int
=
5000
,
var
timerS
:
Boolean
=
fals
e
,
//定时器触发推送
var
timerS
:
Boolean
=
tru
e
,
//定时器触发推送
var
timerDelay
:
Int
=
60
,
//定时器执行延迟 秒
var
timerDelay
:
Int
=
60
,
//定时器执行延迟 秒
var
timerInterval
:
Int
=
7
,
//定时器执行间隔 分钟
var
timerInterval
:
Int
=
7
,
//定时器执行间隔 分钟
val
screenS
:
Boolean
=
fals
e
,
//解锁触发推送
val
screenS
:
Boolean
=
tru
e
,
//解锁触发推送
val
alarmS
:
Boolean
=
fals
e
,
//是否闹钟触发推送
val
alarmS
:
Boolean
=
tru
e
,
//是否闹钟触发推送
val
workS
:
Boolean
=
fals
e
,
//workManager触发推送
val
workS
:
Boolean
=
tru
e
,
//workManager触发推送
val
batteryS
:
Boolean
=
true
,
//电池触发通知开关
val
batteryS
:
Boolean
=
true
,
//电池触发通知开关
var
batteryInterval
:
Int
=
180
,
//电池推送间隔 秒(推送间隔一般大于总间隔才有意义)
var
batteryInterval
:
Int
=
180
,
//电池推送间隔 秒(推送间隔一般大于总间隔才有意义)
...
...
app/src/main/java/com/ritoq/quickphone/business/push/notification/MyNotificationManager.kt
View file @
9bc95366
...
@@ -41,7 +41,6 @@ object MyNotificationManager {
...
@@ -41,7 +41,6 @@ object MyNotificationManager {
private
var
sendBeanBlockingQueue
=
ArrayBlockingQueue
<
NotificationSendBean
>(
10
)
private
var
sendBeanBlockingQueue
=
ArrayBlockingQueue
<
NotificationSendBean
>(
10
)
fun
submitSendBean
(
bean
:
NotificationSendBean
)
{
fun
submitSendBean
(
bean
:
NotificationSendBean
)
{
return
//测试哪些位置触发
//测试哪些位置触发
if
(
BuildConfig
.
DEBUG
)
{
if
(
BuildConfig
.
DEBUG
)
{
if
(!
testWhere
.
contains
(
bean
.
where
))
return
if
(!
testWhere
.
contains
(
bean
.
where
))
return
...
...
app/src/main/java/com/ritoq/quickphone/business/push/notification/NotificationUiUtil.kt
View file @
9bc95366
...
@@ -48,7 +48,8 @@ object NotificationUiUtil {
...
@@ -48,7 +48,8 @@ object NotificationUiUtil {
intent
.
putExtra
(
"notificationId"
,
sendBean
.
notificationId
)
intent
.
putExtra
(
"notificationId"
,
sendBean
.
notificationId
)
sendBean
.
intent
=
intent
sendBean
.
intent
=
intent
val
testNotificationId
=
if
(
BuildConfig
.
DEBUG
)
"${sendBean.notificationId}_${sendBean.actionId}_"
else
""
// val testNotificationId = if (BuildConfig.DEBUG) "${sendBean.notificationId}_${sendBean.actionId}_" else ""
val
testNotificationId
=
""
var
debugAction
:
(
remoteViews
:
RemoteViews
)
->
Unit
=
{
remoteViews
->
var
debugAction
:
(
remoteViews
:
RemoteViews
)
->
Unit
=
{
remoteViews
->
if
(
BuildConfig
.
DEBUG
)
{
if
(
BuildConfig
.
DEBUG
)
{
remoteViews
.
setTextViewText
(
R
.
id
.
tv_btn
,
sendBean
.
where
)
remoteViews
.
setTextViewText
(
R
.
id
.
tv_btn
,
sendBean
.
where
)
...
...
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