Loading packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java +1 −1 Original line number Diff line number Diff line Loading @@ -186,7 +186,7 @@ public abstract class BaseStatusBar extends SystemUI implements protected DevicePolicyManager mDevicePolicyManager; protected IDreamManager mDreamManager; PowerManager mPowerManager; protected PowerManager mPowerManager; protected StatusBarKeyguardViewManager mStatusBarKeyguardViewManager; // public mode, private notifications, etc Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java +9 −1 Original line number Diff line number Diff line Loading @@ -1256,7 +1256,7 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode, } if (!isHeadsUped && notification.getNotification().fullScreenIntent != null) { if (mNotificationData.shouldSuppressScreenOn(notification.getKey())) { if (shouldSupressFullScreenIntent(notification.getKey())) { if (DEBUG) { Log.d(TAG, "No Fullscreen intent: suppressed by DND: " + notification.getKey()); } Loading @@ -1283,6 +1283,14 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode, setAreThereNotifications(); } private boolean shouldSupressFullScreenIntent(String key) { if (mPowerManager.isInteractive()) { return mNotificationData.shouldSuppressPeek(key); } else { return mNotificationData.shouldSuppressScreenOn(key); } } @Override protected void updateNotificationRanking(RankingMap ranking) { mNotificationData.updateRanking(ranking); Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java +1 −1 Original line number Diff line number Diff line Loading @@ -186,7 +186,7 @@ public abstract class BaseStatusBar extends SystemUI implements protected DevicePolicyManager mDevicePolicyManager; protected IDreamManager mDreamManager; PowerManager mPowerManager; protected PowerManager mPowerManager; protected StatusBarKeyguardViewManager mStatusBarKeyguardViewManager; // public mode, private notifications, etc Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java +9 −1 Original line number Diff line number Diff line Loading @@ -1256,7 +1256,7 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode, } if (!isHeadsUped && notification.getNotification().fullScreenIntent != null) { if (mNotificationData.shouldSuppressScreenOn(notification.getKey())) { if (shouldSupressFullScreenIntent(notification.getKey())) { if (DEBUG) { Log.d(TAG, "No Fullscreen intent: suppressed by DND: " + notification.getKey()); } Loading @@ -1283,6 +1283,14 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode, setAreThereNotifications(); } private boolean shouldSupressFullScreenIntent(String key) { if (mPowerManager.isInteractive()) { return mNotificationData.shouldSuppressPeek(key); } else { return mNotificationData.shouldSuppressScreenOn(key); } } @Override protected void updateNotificationRanking(RankingMap ranking) { mNotificationData.updateRanking(ranking); Loading