Add settings for apps that don't use full conversations
Test: make -j64 RunSettingsRoboTests ROBOTEST_FILTER="com.android.settings.notification" Fixes: 155276427 Change-Id: Ie145b9cdc9555d4676a8bd225427abc9222f31c5
This commit is contained in:
@@ -268,15 +268,32 @@ public class NotificationBackend {
|
||||
}
|
||||
}
|
||||
|
||||
public boolean hasSentMessage(String pkg, int uid) {
|
||||
public boolean isInInvalidMsgState(String pkg, int uid) {
|
||||
try {
|
||||
return sINM.hasSentMessage(pkg, uid);
|
||||
return sINM.isInInvalidMsgState(pkg, uid);
|
||||
} catch (Exception e) {
|
||||
Log.w(TAG, "Error calling NoMan", e);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public boolean hasUserDemotedInvalidMsgApp(String pkg, int uid) {
|
||||
try {
|
||||
return sINM.hasUserDemotedInvalidMsgApp(pkg, uid);
|
||||
} catch (Exception e) {
|
||||
Log.w(TAG, "Error calling NoMan", e);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public void setInvalidMsgAppDemoted(String pkg, int uid, boolean isDemoted) {
|
||||
try {
|
||||
sINM.setInvalidMsgAppDemoted(pkg, uid, isDemoted);
|
||||
} catch (Exception e) {
|
||||
Log.w(TAG, "Error calling NoMan", e);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns all notification channels associated with the package and uid that will bypass DND
|
||||
*/
|
||||
|
Reference in New Issue
Block a user