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) {
|
protected boolean shouldPeek(Entry entry, StatusBarNotification sbn) {
|
||||||
if (isDeviceInVrMode()) {
|
if (!mUseHeadsUp || isDeviceInVrMode()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user