Fix bug: - 我打开通知后,还会强行给我弹通知的那个弹窗
This commit is contained in:
parent
427b17bd85
commit
f41c3a0c63
|
|
@ -506,22 +506,6 @@ object NotificationTriggerController {
|
||||||
* @return 常驻通知对象
|
* @return 常驻通知对象
|
||||||
*/
|
*/
|
||||||
fun buildResidentNotification(context: Context): Notification {
|
fun buildResidentNotification(context: Context): Notification {
|
||||||
NotificationUtil.getInstance().checkOverlayPermission(object : PermissionUtil.ICallback() {
|
|
||||||
override fun onAllGranted() {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun onPartialGranted() {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun onAllRejected() {
|
|
||||||
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
val residentModel = ResidentModelManger().getModel(context)
|
val residentModel = ResidentModelManger().getModel(context)
|
||||||
if(context.canSendNotification()){
|
if(context.canSendNotification()){
|
||||||
residentTrack(residentModel)
|
residentTrack(residentModel)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue