diff options
author | Chris Wren <cwren@android.com> | 2015-10-16 16:24:20 -0400 |
---|---|---|
committer | Chris Wren <cwren@android.com> | 2015-10-16 16:26:41 -0400 |
commit | 063926bda7d32ca74075a6a106c712efc3aa3581 (patch) | |
tree | 196200c2a60ff5a92498c899e5fd1b73c507d2a3 /packages | |
parent | c1c462cbaa8b65c6240f947de503619482296222 (diff) | |
download | frameworks_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.java | 4 |
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); |