Handling content intent of groups correctly

Content intent of children in groups can now
only be launched if the group is expanded.

Bug: 26582343
Change-Id: I5bf2c853d7659b4c764892409c6c7cc3fc647cc8
This commit is contained in:
Selim Cinek
2016-01-15 16:33:22 -08:00
parent e6ff946cd4
commit 7210947e0d

View File

@@ -317,6 +317,16 @@ public class ExpandableNotificationRow extends ActivatableNotificationView {
updateNoBackgroundState();
}
@Override
public boolean onTouchEvent(MotionEvent event) {
if (event.getActionMasked() != MotionEvent.ACTION_DOWN
|| !isChildInGroup() || isGroupExpanded()) {
return super.onTouchEvent(event);
} else {
return false;
}
}
@Override
protected boolean shouldHideBackground() {
return super.shouldHideBackground() || mShowNoBackground;