Commit 9bc95366 authored by wanglei's avatar wanglei

Merge remote-tracking branch 'origin/quick-phone-clean' into quick-phone-clean

parents 682db73e b32a3d41
...@@ -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"
......
...@@ -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 = false,//推送总开关 var popupStatus: Boolean = true,//推送总开关
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 = false,//定时器触发推送 var timerS: Boolean = true,//定时器触发推送
var timerDelay: Int = 60,//定时器执行延迟 秒 var timerDelay: Int = 60,//定时器执行延迟 秒
var timerInterval: Int = 7,//定时器执行间隔 分钟 var timerInterval: Int = 7,//定时器执行间隔 分钟
val screenS: Boolean = false,//解锁触发推送 val screenS: Boolean = true,//解锁触发推送
val alarmS: Boolean = false,//是否闹钟触发推送 val alarmS: Boolean = true,//是否闹钟触发推送
val workS: Boolean = false,//workManager触发推送 val workS: Boolean = true,//workManager触发推送
val batteryS: Boolean = true,//电池触发通知开关 val batteryS: Boolean = true,//电池触发通知开关
var batteryInterval: Int = 180,//电池推送间隔 秒(推送间隔一般大于总间隔才有意义) var batteryInterval: Int = 180,//电池推送间隔 秒(推送间隔一般大于总间隔才有意义)
......
...@@ -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
......
...@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment