Fix channel conditional in cancelAll.
Bug: 32083625 Test: manual and runtest systemui-jank -c android.platform.systemui.tests.jank.SystemUiJankTests -m testNotificationListPull Change-Id: I1b9bb7a287be461d832816f22822c6dd6eb5e8f0
This commit is contained in:
@@ -3641,7 +3641,7 @@ public class NotificationManagerService extends SystemService {
|
||||
if (pkg != null && !r.sbn.getPackageName().equals(pkg)) {
|
||||
continue;
|
||||
}
|
||||
if (channelId == null || !channelId.equals(r.getChannel().getId())) {
|
||||
if (channelId != null && !channelId.equals(r.getChannel().getId())) {
|
||||
continue;
|
||||
}
|
||||
if (canceledNotifications == null) {
|
||||
|
||||
@@ -87,6 +87,11 @@ public class NotificationTestList extends TestActivity
|
||||
}
|
||||
|
||||
private Test[] mTests = new Test[] {
|
||||
new Test("cancel all") {
|
||||
public void run() {
|
||||
mNM.cancelAll();
|
||||
}
|
||||
},
|
||||
new Test("Phone call") {
|
||||
public void run()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user