aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wren <cwren@android.com>2016-04-07 11:11:19 -0400
committerChris Wren <cwren@android.com>2016-04-07 11:11:19 -0400
commit7d59ec824cde9611834aa1383d2cdc8341809e3a (patch)
treed127b7b1807e85c267c7026537f98295ca4d9283
parente6ea907e7cf8eb8f8ab04f238ab834ba970b4f45 (diff)
downloadexperimental-7d59ec824cde9611834aa1383d2cdc8341809e3a.tar.gz
test out the new disconnect api
Bug: 27582839 Change-Id: Iaddcbba0bfeca0e2603ed6d4fc30a5ff833d5717
-rw-r--r--NotificationListenerSample/src/com/android/example/notificationlistener/Listener.java5
-rw-r--r--NotificationListenerSample/src/com/android/example/notificationlistener/NotificationListenerActivity.java2
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();