diff options
| author | 2015-10-17 21:46:00 +0000 | |
|---|---|---|
| committer | 2015-10-17 21:46:00 +0000 | |
| commit | fec413dbeae1a5afef833ad883d36bdd2a6af105 (patch) | |
| tree | e21a1bfabd92e2b3198339731697b990fd0cbaf7 | |
| parent | 462b8b3986fd194e08c78d66b6cc547af7388830 (diff) | |
| parent | 9c25e23c4b571f9c9ff3fd69408c4cfd03385e82 (diff) | |
am 9c25e23c: am 3472f18e: am c7f2058c: Merge "count notification peeks by window action" into mnc-dr-dev
* commit '9c25e23c4b571f9c9ff3fd69408c4cfd03385e82':
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); |