summaryrefslogtreecommitdiff
path: root/core/java/android/view/NotificationHeaderView.java
diff options
context:
space:
mode:
authorSelim Cinek <cinek@google.com>2016-01-14 18:48:41 -0800
committerSelim Cinek <cinek@google.com>2016-01-21 19:42:49 -0800
commit6183d12926a189b08cc3be8d9c78470617e63db0 (patch)
treeaadc980b64789445c78261f9d13bb000dff2c07c /core/java/android/view/NotificationHeaderView.java
parent3bdbf28b496094b012a63f1d38b823e8c205909b (diff)
Fixed that music notifications were not clickable on lockscreen
On the lockscreen we were unintentionally disabling single clicks on the media buttons while we only wanted to disallow it for the notification header. This is now fixed by explicitly checking if we are clicking on the notification header. Bug: 26325096 Change-Id: I044f25ac3216b98c7769c31d09d19f801a437194
Diffstat (limited to 'core/java/android/view/NotificationHeaderView.java')
-rw-r--r--core/java/android/view/NotificationHeaderView.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/java/android/view/NotificationHeaderView.java b/core/java/android/view/NotificationHeaderView.java
index 6fd0e6711545..1c0ea0f9120b 100644
--- a/core/java/android/view/NotificationHeaderView.java
+++ b/core/java/android/view/NotificationHeaderView.java
@@ -335,4 +335,11 @@ public class NotificationHeaderView extends LinearLayout {
public boolean hasOverlappingRendering() {
return false;
}
+
+ public boolean isInTouchRect(float x, float y) {
+ if (mExpandClickListener == null) {
+ return false;
+ }
+ return mTouchListener.isInside(x, y);
+ }
}