From 8b96cb88b8d126fe7c1164d04cc4690b2be533ca Mon Sep 17 00:00:00 2001 From: Chris Wren Date: Tue, 21 Apr 2015 12:34:57 -0400 Subject: [PATCH] Intrument the act of banning a package's notifications. Bug: 20451514 Change-Id: I0c065a7baaf84442e415d9a6c7dce79457fb311e --- .../android/settings/notification/AppNotificationSettings.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/com/android/settings/notification/AppNotificationSettings.java b/src/com/android/settings/notification/AppNotificationSettings.java index db957a775c9..129c35955ca 100644 --- a/src/com/android/settings/notification/AppNotificationSettings.java +++ b/src/com/android/settings/notification/AppNotificationSettings.java @@ -154,6 +154,9 @@ public class AppNotificationSettings extends SettingsPreferenceFragment { @Override public boolean onPreferenceChange(Preference preference, Object newValue) { final boolean banned = (Boolean) newValue; + if (banned) { + MetricsLogger.action(getActivity(), MetricsLogger.ACTION_BAN_APP_NOTES, pkg); + } final boolean success = mBackend.setNotificationsBanned(pkg, uid, banned); if (success) { updateDependents(banned);