Loading packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java +1 −1 Original line number Original line Diff line number Diff line Loading @@ -2491,7 +2491,7 @@ public abstract class BaseStatusBar extends SystemUI implements } } protected boolean shouldPeek(Entry entry, StatusBarNotification sbn) { protected boolean shouldPeek(Entry entry, StatusBarNotification sbn) { if (isDeviceInVrMode()) { if (!mUseHeadsUp || isDeviceInVrMode()) { return false; return false; } } Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java +1 −1 Original line number Original line Diff line number Diff line Loading @@ -1408,7 +1408,7 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode, if (shadeEntry == null) { if (shadeEntry == null) { return; return; } } boolean isHeadsUped = mUseHeadsUp && shouldPeek(shadeEntry); boolean isHeadsUped = shouldPeek(shadeEntry); if (isHeadsUped) { if (isHeadsUped) { mHeadsUpManager.showNotification(shadeEntry); mHeadsUpManager.showNotification(shadeEntry); // Mark as seen immediately // Mark as seen immediately Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java +1 −1 Original line number Original line Diff line number Diff line Loading @@ -2491,7 +2491,7 @@ public abstract class BaseStatusBar extends SystemUI implements } } protected boolean shouldPeek(Entry entry, StatusBarNotification sbn) { protected boolean shouldPeek(Entry entry, StatusBarNotification sbn) { if (isDeviceInVrMode()) { if (!mUseHeadsUp || isDeviceInVrMode()) { return false; return false; } } Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java +1 −1 Original line number Original line Diff line number Diff line Loading @@ -1408,7 +1408,7 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode, if (shadeEntry == null) { if (shadeEntry == null) { return; return; } } boolean isHeadsUped = mUseHeadsUp && shouldPeek(shadeEntry); boolean isHeadsUped = shouldPeek(shadeEntry); if (isHeadsUped) { if (isHeadsUped) { mHeadsUpManager.showNotification(shadeEntry); mHeadsUpManager.showNotification(shadeEntry); // Mark as seen immediately // Mark as seen immediately Loading