Add flag to reset notification channel importance

Add a button in development option to unlock user previously changed
notification importance and allow NAS to change the importance

Test: make RunSettingsRoboTests
Change-Id: I55b5349d6a17a383888c59b9126832c2fb8c58a0
This commit is contained in:
Chloris Kuo
2020-10-22 07:27:43 -07:00
parent 6f5b308d54
commit f64ce9e5e4
6 changed files with 200 additions and 0 deletions

View File

@@ -585,6 +585,14 @@ public class NotificationBackend {
sm.requestPinShortcut(shortcutInfo, null);
}
public void resetNotificationImportance() {
try {
sINM.unlockAllNotificationChannels();
} catch (Exception e) {
Log.w(TAG, "Error calling NoMan", e);
}
}
/**
* NotificationsSentState contains how often an app sends notifications and how recently it sent
* one.