修改:
frameworks\base\packages\SystemUI\src\com\android\systemui\statusbar\BaseStatusBar.java
其中有个
protected boolean shouldInterrupt(StatusBarNotification sbn)
方法。
具体解决:
1、添加全局变量
private final String PACKAGES_DIALER = "com.android.dialer";
2、在shouldInterrupt方法内添加
boolean interrupt = (isFullscreen || (isHighPriority && (isNoisy || hasTicker))) && isAllowed && !accessibilityForcesLaunch && mPowerManager.isScreenOn() && (!mStatusBarKeyguardViewManager.isShowing() || mStatusBarKeyguardViewManager.isOccluded()) && !mStatusBarKeyguardViewManager.isInputRestricted() && !PACKAGES_DIALER.equals(sbn.getPackageName()); //添加此行