diff options
| author | 2015-10-17 21:51:09 +0000 | |
|---|---|---|
| committer | 2015-10-17 21:51:09 +0000 | |
| commit | 686fa711025f89316d0b3d044e7ed2329d4d678e (patch) | |
| tree | 48b0d51ebfc0e3d72e46de2d7e226997e1821419 | |
| parent | 78591f03b7314faf3626f2d40892419433aa8b58 (diff) | |
| parent | fec413dbeae1a5afef833ad883d36bdd2a6af105 (diff) | |
am fec413db: am 9c25e23c: am 3472f18e: am c7f2058c: Merge "count notification peeks by window action" into mnc-dr-dev
* commit 'fec413dbeae1a5afef833ad883d36bdd2a6af105':
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 4f7756e84fcc..56f6036d8ab6 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/policy/HeadsUpManager.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/policy/HeadsUpManager.java @@ -170,7 +170,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(); @@ -247,6 +246,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); |