Commit 4d6b7418 by zhangchengbo

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

parent f91f1fa8
......@@ -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>
......
......@@ -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
}
// 判断是否为短信应用
......
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