diff options
author | Chris Wren <cwren@android.com> | 2016-04-07 18:00:17 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2016-04-07 18:00:17 +0000 |
commit | 3209439506faa1952773c6d0437350c1e9726782 (patch) | |
tree | 582ae8e8bb0f36f9f30f00788506cd91da76ed47 | |
parent | 64888170978e9773eca52f6d20646311530e3f8b (diff) | |
parent | 72c7247df3b01c2a0044cfb9bb773cc75ad28307 (diff) | |
download | experimental-3209439506faa1952773c6d0437350c1e9726782.tar.gz |
Merge "test out the new disconnect api" into nyc-dev
am: 72c7247
* commit '72c7247df3b01c2a0044cfb9bb773cc75ad28307':
test out the new disconnect api
Change-Id: Icdbe716627402d53f97f2b603117736f642e3446
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(); |