Stop using deprecated APIs.

Test: builds
Change-Id: Ibf7e7449f8462c36deb9a381f70a8ffc10d63b7b
diff --git a/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/CrossProfileNotificationListenerService.java b/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/CrossProfileNotificationListenerService.java
index 35fb2e4..9a17733 100644
--- a/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/CrossProfileNotificationListenerService.java
+++ b/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/CrossProfileNotificationListenerService.java
@@ -55,11 +55,11 @@
     }
 
     private void sendBroadcastForNotification(StatusBarNotification sbn, String action) {
-        if (NOTIFICATION_CHANNEL.equals(sbn.getNotification().getChannel())) {
+        if (NOTIFICATION_CHANNEL.equals(sbn.getNotification().getChannelId())) {
             LocalBroadcastManager.getInstance(this).sendBroadcast(new Intent(action));
         } else {
             Log.i(TAG, "Notification is for different channel "
-                    + sbn.getNotification().getChannel());
+                    + sbn.getNotification().getChannelId());
         }
     }
 }