1.概述
在10.0的产品定制化开发中,在SystemUI状态栏中,有一些通知类似 消息推送 弹出的 悬浮通知,弹出30秒之后会消失掉 在产品需求中要求屏蔽这类的通过,要想屏蔽掉这些通知,首选知道这些通知是怎么产生的
2.SystemUI 屏蔽状态栏消息推送弹出的悬浮通知的核心类
frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/NotificationContentInflater.java
frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/NotificationAlertingManager.java
3.SystemUI 屏蔽状态栏消息推送弹出的悬浮通知的核心功能实现和分析
系统通知类型
NotificationContentInflater.java 详细的介绍各种通知的类型
frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/NotificationContentInflater.java
3.1NotificationContentInflater 弹窗类型分析
public class NotificationContentInflater