commit | 0bb6dc96717750fd8f92c81b91c7832ad4e57725 | [log] [tgz] |
---|---|---|
author | Jeff Sharkey <jsharkey@android.com> | Sat Apr 29 21:32:32 2017 -0600 |
committer | Jeff Sharkey <jsharkey@android.com> | Sat Apr 29 21:32:42 2017 -0600 |
tree | 53c5cad8a51a1e565f04c5246e974aa61ce8feb5 | |
parent | 4fa6ae233f1e405141a5010b46cd27bd7f9ea069 [diff] |
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()); } } }