Merge "Intrument the act of banning a package's notifications."

This commit is contained in:
Chris Wren
2015-04-21 17:24:30 +00:00
committed by Android (Google) Code Review

View File

@@ -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);