Merge "Notification: Respect disabled HUNs on updates" into nyc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
394cc084f9
@@ -2491,7 +2491,7 @@ public abstract class BaseStatusBar extends SystemUI implements
|
||||
}
|
||||
|
||||
protected boolean shouldPeek(Entry entry, StatusBarNotification sbn) {
|
||||
if (isDeviceInVrMode()) {
|
||||
if (!mUseHeadsUp || isDeviceInVrMode()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -1408,7 +1408,7 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode,
|
||||
if (shadeEntry == null) {
|
||||
return;
|
||||
}
|
||||
boolean isHeadsUped = mUseHeadsUp && shouldPeek(shadeEntry);
|
||||
boolean isHeadsUped = shouldPeek(shadeEntry);
|
||||
if (isHeadsUped) {
|
||||
mHeadsUpManager.showNotification(shadeEntry);
|
||||
// Mark as seen immediately
|
||||
|
||||
Reference in New Issue
Block a user