Fix bug: - 去掉Overlay 弹窗权限
This commit is contained in:
parent
d60f608115
commit
bb684928ca
|
|
@ -542,13 +542,13 @@ class NotificationUtil private constructor() {
|
||||||
|
|
||||||
|
|
||||||
fun checkOverlayPermission(callback: PermissionUtil.ICallback) {
|
fun checkOverlayPermission(callback: PermissionUtil.ICallback) {
|
||||||
if (!Settings.canDrawOverlays(BaseApp.appContext())) {
|
/*if (!Settings.canDrawOverlays(BaseApp.appContext())) {
|
||||||
if (System.currentTimeMillis() - NotificationRecorder.getLastSystemAlertShowTime() >= NotifyConst.MIN_INTERVAL_SHOW_SYSTEM_ALERT) {
|
if (System.currentTimeMillis() - NotificationRecorder.getLastSystemAlertShowTime() >= NotifyConst.MIN_INTERVAL_SHOW_SYSTEM_ALERT) {
|
||||||
PermissionUtil.checkPermission(Settings.ACTION_MANAGE_OVERLAY_PERMISSION, callback)
|
PermissionUtil.checkPermission(Settings.ACTION_MANAGE_OVERLAY_PERMISSION, callback)
|
||||||
NotificationRecorder.setLastSystemAlertShowTime()
|
NotificationRecorder.setLastSystemAlertShowTime()
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue