Merge "AOD: Do not show guts nor snooze" into oc-dev

This commit is contained in:
TreeHugger Robot
2017-04-18 00:07:58 +00:00
committed by Android (Google) Code Review
2 changed files with 4 additions and 0 deletions

View File

@@ -227,6 +227,7 @@ public class NotificationMenuRow implements NotificationMenuRowPlugin, View.OnCl
if (mShouldShowMenu
&& !NotificationStackScrollLayout.isPinnedHeadsUp(view)
&& !mParent.areGutsExposed()
&& !mParent.isDark()
&& (mCheckForDrag == null || !mHandler.hasCallbacks(mCheckForDrag))) {
// Only show the menu if we're not a heads up view and guts aren't exposed.
mCheckForDrag = new CheckForDrag();

View File

@@ -5862,6 +5862,9 @@ public class StatusBar extends SystemUI implements DemoMode,
}
final ExpandableNotificationRow row = (ExpandableNotificationRow) v;
if (row.isDark()) {
return false;
}
bindGuts(row, item);
NotificationGuts guts = row.getGuts();