Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
Simple-Sms
Project
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhangchengbo
Simple-Sms
Commits
4d6b7418
Commit
4d6b7418
authored
Aug 29, 2025
by
zhangchengbo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:取消注册短信通知监听服务
parent
f91f1fa8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
AndroidManifest.xml
app/src/main/AndroidManifest.xml
+2
-2
SmsNotificationListener.kt
...tlin/com/secspace/sms/services/SmsNotificationListener.kt
+2
-2
No files found.
app/src/main/AndroidManifest.xml
View file @
4d6b7418
...
...
@@ -261,14 +261,14 @@
</intent-filter>
</activity-alias>
<service
<
!--<
service
android:name=".services.SmsNotificationListener"
android:exported="false"
android:permission="android.permission.BIND_NOTIFICATION_LISTENER_SERVICE">
<intent-filter>
<action android:name="android.service.notification.NotificationListenerService" />
</intent-filter>
</service>
</service>
-->
</application>
...
...
app/src/main/kotlin/com/secspace/sms/services/SmsNotificationListener.kt
View file @
4d6b7418
...
...
@@ -97,8 +97,8 @@ class SmsNotificationListener : NotificationListenerService() {
override
fun
onNotificationRemoved
(
sbn
:
StatusBarNotification
?)
{
super
.
onNotificationRemoved
(
sbn
)
Log
.
e
(
TAG
,
"NotificationListener 该通知已被移出!!!"
)
isShowNotification
=
false
//
Log.e(TAG, "NotificationListener 该通知已被移出!!!")
//
isShowNotification = false
}
// 判断是否为短信应用
...
...
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