android 9.0 10.0 状态栏通知栏的图标为白色解决方案

在进行定制化开发中,客户反应app弹出的通知 在状态栏显示为白色,显示不了正常的背景色,这就跟通知的背景颜色有关

接下来首选看下通知显示的流程

framework/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarNotificationPresenter.java

 private final NotificationPanelView mNotificationPanel;
    @Override
    public void updateNotificationViews() {
   
        // The function updateRowStates depends on both of these being non-null, so check them here.
        // We may be called before they are set from DeviceProvisionedController's callback.
        if (mScrimController 

你可能感兴趣的:(9.0状态栏通知栏图标为白色,10.0状态栏通知栏图标为白色,11.0状态栏通知栏图标为白色,SystemUI,framework)