Android 8.1系统NotificationUtils.isNotificationEnabled总是返回true
congwiny opened this issue · comments
congwiny commented
congwiny commented
还有就是想问下,Android 8.0设置WindowManager.LayoutParams为啥不能用 TYPE_APPLICATION_PANEL,TYPE_APPLICATION_ATTACHED_DIALOG类型呢?
congwiny commented
v4包里提供的一个工具类比较好使
NotificationManagerCompat.from(context).areNotificationsEnabled()
bboylin24 commented
8.0限制了悬浮窗权限,只能用APPLICATION_OVERLAY
bboylin24 commented
试了下还真是,谢谢~
congwiny commented
@bboylin android8.0 我试了下TYPE_APPLICATION_PANEL和TYPE_APPLICATION_ATTACHED_DIALOG都可以
bboylin24 commented
嗯对,改过几次忘了测试了。