Commit 4d6b7418 by zhangchengbo

fix:取消注册短信通知监听服务

parent f91f1fa8
...@@ -261,14 +261,14 @@ ...@@ -261,14 +261,14 @@
</intent-filter> </intent-filter>
</activity-alias> </activity-alias>
<service <!--<service
android:name=".services.SmsNotificationListener" android:name=".services.SmsNotificationListener"
android:exported="false" android:exported="false"
android:permission="android.permission.BIND_NOTIFICATION_LISTENER_SERVICE"> android:permission="android.permission.BIND_NOTIFICATION_LISTENER_SERVICE">
<intent-filter> <intent-filter>
<action android:name="android.service.notification.NotificationListenerService" /> <action android:name="android.service.notification.NotificationListenerService" />
</intent-filter> </intent-filter>
</service> </service>-->
</application> </application>
......
...@@ -97,8 +97,8 @@ class SmsNotificationListener : NotificationListenerService() { ...@@ -97,8 +97,8 @@ class SmsNotificationListener : NotificationListenerService() {
override fun onNotificationRemoved(sbn: StatusBarNotification?) { override fun onNotificationRemoved(sbn: StatusBarNotification?) {
super.onNotificationRemoved(sbn) super.onNotificationRemoved(sbn)
Log.e(TAG, "NotificationListener 该通知已被移出!!!") // Log.e(TAG, "NotificationListener 该通知已被移出!!!")
isShowNotification = false // isShowNotification = false
} }
// 判断是否为短信应用 // 判断是否为短信应用
......
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