Fix bug: - 我打开通知后,还会强行给我弹通知的那个弹窗

This commit is contained in:
renhaoting 2026-01-07 18:39:10 +08:00
parent 427b17bd85
commit f41c3a0c63
1 changed files with 0 additions and 16 deletions

View File

@ -506,22 +506,6 @@ object NotificationTriggerController {
* @return 常驻通知对象
*/
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)
if(context.canSendNotification()){
residentTrack(residentModel)