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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user