diff options
| author | 2015-10-17 21:41:39 +0000 | |
|---|---|---|
| committer | 2015-10-17 21:41:39 +0000 | |
| commit | 9c25e23c4b571f9c9ff3fd69408c4cfd03385e82 (patch) | |
| tree | f39742409d4203fc655c1fc0551b55a1d9fb3282 | |
| parent | 55dd957d87e847c1ae7d4ddeff68fdb0b18ee23b (diff) | |
| parent | 3472f18e0218c7d7a991da50db8251471fd8c25d (diff) | |
am 3472f18e: am c7f2058c: Merge "count notification peeks by window action" into mnc-dr-dev
* commit '3472f18e0218c7d7a991da50db8251471fd8c25d':
count notification peeks by window action
| -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 ed9b123f7431..299f20e3f4cd 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); |