summaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorChris Wren <cwren@android.com>2015-10-17 21:30:37 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-10-17 21:30:37 +0000
commitc7f2058cefd00bdce31a77646afa407bdf269809 (patch)
tree1b2e3fba72f852b97e3be8cabe7a9e2fc516e74d /packages
parentc03443b23de0b474080168d892cd685283c3285b (diff)
parent063926bda7d32ca74075a6a106c712efc3aa3581 (diff)
downloadframeworks_base-c7f2058cefd00bdce31a77646afa407bdf269809.zip
frameworks_base-c7f2058cefd00bdce31a77646afa407bdf269809.tar.gz
frameworks_base-c7f2058cefd00bdce31a77646afa407bdf269809.tar.bz2
Merge "count notification peeks by window action" into mnc-dr-dev
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);