Merge "test out the new disconnect api" into nyc-dev
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 @@
}
@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 @@
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();