Skip to content

Commit 829ac14

Browse files
Julia ReynoldsAndroid (Google) Code Review
authored andcommitted
Merge "Add method for Settings" into rvc-dev
2 parents b542c4d + 0c45c6e commit 829ac14

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

core/java/android/app/INotificationManager.aidl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ interface INotificationManager
5858

5959
void setShowBadge(String pkg, int uid, boolean showBadge);
6060
boolean canShowBadge(String pkg, int uid);
61+
boolean hasSentValidMsg(String pkg, int uid);
6162
boolean isInInvalidMsgState(String pkg, int uid);
6263
boolean hasUserDemotedInvalidMsgApp(String pkg, int uid);
6364
void setInvalidMsgAppDemoted(String pkg, int uid, boolean isDemoted);

services/core/java/com/android/server/notification/NotificationManagerService.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3171,6 +3171,12 @@ public void setShowBadge(String pkg, int uid, boolean showBadge) {
31713171
handleSavePolicyFile();
31723172
}
31733173

3174+
@Override
3175+
public boolean hasSentValidMsg(String pkg, int uid) {
3176+
checkCallerIsSystem();
3177+
return mPreferencesHelper.hasSentValidMsg(pkg, uid);
3178+
}
3179+
31743180
@Override
31753181
public boolean isInInvalidMsgState(String pkg, int uid) {
31763182
checkCallerIsSystem();

0 commit comments

Comments
 (0)