Commit 86fd9d8d by zhangchengbo

fix:关闭通知使用权检测

parent 4d6b7418
...@@ -100,12 +100,12 @@ class MainActivity : SimpleActivity() { ...@@ -100,12 +100,12 @@ class MainActivity : SimpleActivity() {
super.onResume() super.onResume()
//是否拥有通知使用权 //是否拥有通知使用权
val result = isNotificationAccessEnabled() /*val result = isNotificationAccessEnabled()
if (!result) { if (!result) {
val intent = Intent("android.settings.ACTION_NOTIFICATION_LISTENER_SETTINGS") val intent = Intent("android.settings.ACTION_NOTIFICATION_LISTENER_SETTINGS")
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK) intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
startActivity(intent) startActivity(intent)
} }*/
initMessenger() initMessenger()
......
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