Intrument the act of banning a package's notifications.
Bug: 20451514 Change-Id: I0c065a7baaf84442e415d9a6c7dce79457fb311e
This commit is contained in:
@@ -154,6 +154,9 @@ public class AppNotificationSettings extends SettingsPreferenceFragment {
|
|||||||
@Override
|
@Override
|
||||||
public boolean onPreferenceChange(Preference preference, Object newValue) {
|
public boolean onPreferenceChange(Preference preference, Object newValue) {
|
||||||
final boolean banned = (Boolean) 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);
|
final boolean success = mBackend.setNotificationsBanned(pkg, uid, banned);
|
||||||
if (success) {
|
if (success) {
|
||||||
updateDependents(banned);
|
updateDependents(banned);
|
||||||
|
Reference in New Issue
Block a user