diff options
author | Chris Wren <cwren@android.com> | 2016-04-07 11:11:19 -0400 |
---|---|---|
committer | Chris Wren <cwren@android.com> | 2016-04-07 11:11:19 -0400 |
commit | 7d59ec824cde9611834aa1383d2cdc8341809e3a (patch) | |
tree | d127b7b1807e85c267c7026537f98295ca4d9283 | |
parent | e6ea907e7cf8eb8f8ab04f238ab834ba970b4f45 (diff) | |
download | experimental-7d59ec824cde9611834aa1383d2cdc8341809e3a.tar.gz |
test out the new disconnect api
Bug: 27582839
Change-Id: Iaddcbba0bfeca0e2603ed6d4fc30a5ff833d5717
2 files changed, 6 insertions, 1 deletions
diff --git a/NotificationListenerSample/src/com/android/example/notificationlistener/Listener.java b/NotificationListenerSample/src/com/android/example/notificationlistener/Listener.java index 4f79375..4a65e6a 100644 --- a/NotificationListenerSample/src/com/android/example/notificationlistener/Listener.java +++ b/NotificationListenerSample/src/com/android/example/notificationlistener/Listener.java @@ -269,6 +269,11 @@ public class Listener extends NotificationListenerService { } @Override + public void onListenerDisconnected() { + Log.w(TAG, "onListenerDisconnected: "); + } + + @Override public void onNotificationRankingUpdate(RankingMap rankingMap) { Log.w(TAG, "onNotificationRankingUpdate"); Message.obtain(sHandler, MSG_ORDER, diff --git a/NotificationListenerSample/src/com/android/example/notificationlistener/NotificationListenerActivity.java b/NotificationListenerSample/src/com/android/example/notificationlistener/NotificationListenerActivity.java index bbba935..c5016af 100644 --- a/NotificationListenerSample/src/com/android/example/notificationlistener/NotificationListenerActivity.java +++ b/NotificationListenerSample/src/com/android/example/notificationlistener/NotificationListenerActivity.java @@ -244,7 +244,7 @@ public class NotificationListenerActivity extends ListActivity { if (child == null) { Notification.Builder builder = Notification.Builder.recoverBuilder(mContext, sbn.getNotification()); - child = builder.makeContentView().apply(mContext, null); + child = builder.createContentView().apply(mContext, null); } container.setTag(sbn); container.removeAllViews(); |