summaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorChris Wren <cwren@android.com>2015-10-16 16:24:20 -0400
committerChris Wren <cwren@android.com>2015-10-16 16:26:41 -0400
commit063926bda7d32ca74075a6a106c712efc3aa3581 (patch)
tree196200c2a60ff5a92498c899e5fd1b73c507d2a3 /packages
parentc1c462cbaa8b65c6240f947de503619482296222 (diff)
downloadframeworks_base-063926bda7d32ca74075a6a106c712efc3aa3581.zip
frameworks_base-063926bda7d32ca74075a6a106c712efc3aa3581.tar.gz
frameworks_base-063926bda7d32ca74075a6a106c712efc3aa3581.tar.bz2
count notification peeks by window action
Bug: 20751989 Change-Id: I9b1093b98f303656a299c18b503c1d8c9f032335
Diffstat (limited to 'packages')
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/policy/HeadsUpManager.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/policy/HeadsUpManager.java b/packages/SystemUI/src/com/android/systemui/statusbar/policy/HeadsUpManager.java
index ed9b123..299f20e 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/policy/HeadsUpManager.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/policy/HeadsUpManager.java
@@ -169,7 +169,6 @@ public class HeadsUpManager implements ViewTreeObserver.OnComputeInternalInsetsL
*/
public void showNotification(NotificationData.Entry headsUp) {
if (DEBUG) Log.v(TAG, "showNotification");
- MetricsLogger.count(mContext, "note_peek", 1);
addHeadsUpEntry(headsUp);
updateNotification(headsUp, true);
headsUp.setInterruption();
@@ -246,6 +245,9 @@ public class HeadsUpManager implements ViewTreeObserver.OnComputeInternalInsetsL
return;
}
mHasPinnedNotification = hasPinnedNotification;
+ if (mHasPinnedNotification) {
+ MetricsLogger.count(mContext, "note_peek", 1);
+ }
updateTouchableRegionListener();
for (OnHeadsUpChangedListener listener : mListeners) {
listener.onHeadsUpPinnedModeChanged(hasPinnedNotification);